I need fix a javascript file

Fermé Publié le il y a 3 ans Paiement à la livraison
Fermé Paiement à la livraison

I have this html file with a javascript file where if creates a table with two cells, one at left it has a value of an array and other cell it has a image link. You'll see that cell at left doesnt match with cell at right, if you do this in debugger mode it works because is slower than without debugger mode.

I need fix this, also it gives a csv response but is not necessarry because you can remove &output=csv, but I don't know if this is related with the error.

Also if a image is not found I want at cell left the value of the array and at right cell the something like image not found.

<!DOCTYPE html>

<html>

<head>

<title>Buscador de imagenes</title>

<link rel="stylesheet" href="[login to view URL]@4.5.3/dist/css/[login to view URL]" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">

</head>

<body>

<div class="container">

<div class="row">

<div class="col">

<h1>Buscador de imagenes</h1>

<h1>Buscador de imagenes</h1>

<div id=ipText></div>

<h3>Resultado</h3>

</div>

</div>

</div>

<table id="myTable" class="table">

</table>

<script>

var upc = ["cat", "dog", "fox", "canada"];

var i;

var j = 0;

for (i = 0; i < [login to view URL]; i++) {

var serverurl = "[login to view URL]"+upc[i]+"&google_domain=google.com.mx&location=Mexico&gl=mx&hl=es&search_type=images&images_page=1&output=csv&csv_fields=[login to view URL]";

var ptext = [login to view URL]("ipText");

[login to view URL](createItem(upc[i]));

fetch(serverurl)

.then(function (response) {

return [login to view URL]();

})

.then(function (myJson) {

var textdata = myJson;

var getimageurl = [login to view URL]("\n");

var correcturl = getimageurl[1];

var cuturl = [login to view URL](0, -1);

var real_url = [login to view URL](1);

[login to view URL](real_url);

var table = [login to view URL]("myTable");

var row = [login to view URL](0);

var cell1 = [login to view URL](0);

var cell2 = [login to view URL](1);

[login to view URL] = upc[j];

[login to view URL] = real_url;

j++;

})

.catch(function (error) {

[login to view URL]("Error: " + error);

});

}

function createItem(name){

var pp = [login to view URL]("p");

[login to view URL] = name;

return pp;

}

</script>

</body>

</html>

JavaScript jQuery / Prototype HTML5 AJAX

Nº du projet : #28342567

À propos du projet

25 propositions Projet à distance Actif il y a 3 ans

25 freelances font une offre moyenne de 24 $ pour ce travail

TopSEOExpertscom

Hi, Here's my bid to fix the script for you so that it shows the correct image based on the text that is searched for.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(42 Commentaires)
6.0
vut4l1

Hi! I am a PHP, JavaScript, JQuery, Bootstrap, HTML, CSS, Sass expert. I can start work right now and successfully deliver final result to you. I can deliver your project in shortest time and successfully. Thanks.

$30 USD en 2 jours
(24 Commentaires)
5.8
bobrovpavelwork

Dear client. I read your description very carefully and I noticed what you want. As I am a senior web developer, I have many experience in React and Node I can dive into your project right now because I have no ongoing Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(26 Commentaires)
5.6
HaxArt

Hello, I'v got over 12 years experience as developer. I would need to ask You a few questions in order to fix Your script. Please contact me. Regards

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(17 Commentaires)
5.1
dnplugins

Please send the html file containing the javascript in a text file. I can fix your script and implement it so it works properly. I have been a website developer for more than 6 years, previously working for a private Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(48 Commentaires)
4.9
nikhilroyjs

"Javascript Expert" Hello, I will fix your javascript issue and start it asap. I will fix your table cell to work properly with javascript function. Looking forward to working with you long term, Regard's

$20 USD en 2 jours
(10 Commentaires)
4.4
mowglisanu

Your issue is due to the asyncronous nature of ajax(the fetch function) We can resolve this in 2 ways 1. wait for each ajax call to finish before making another 2. create the full table and plug in the values as they b Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(12 Commentaires)
4.0
bouktaibadil

hello, i tested your html code i get the right results, contact me for more details on the project Best regards

$20 USD en 7 jours
(13 Commentaires)
3.7
mdeasinislam6

Hi. I checked the code and used the output as json and made some little change in code. And things is working fine. Image links are matching with the left side names. Lets have a chat if you already haven't hired someo Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(6 Commentaires)
3.8
monfssf

Hello, I have done these kinds of projects before also I can do your word the way you want. I know c++, python, html, css, javascript, django, java and many more. I know programming languages to which helps to accompli Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(4 Commentaires)
2.9
asquarestudio

Hi there - this should be a relatively simple fix. We'd just need to update your code to track each outgoing request and map it back to the table cell where you want the data to land (because you cannot guarantee the o Plus

$20 USD en 7 jours
(3 Commentaires)
2.8
demydkasilov

✨✨✨Dear sir✨✨✨ Thank you for your job posting I hope you are well and staying safe without COVID-19 effect I m an professional developer in front-end and back-end . It seems to be an interesting work and a good opport Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(3 Commentaires)
2.2
sunildevjava

Hello Dear, I am a Java Full Stack developer with 2.5+ years of experience. I am multi skilled and can work on both web and desktop application development. I am also having intermediate level experience in Angular an Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(2 Commentaires)
1.6
skhizarjamal7

hi, hello i am khizar a professional free lancer, i read your project description and i am willing to work on your project. my expertise in JavaScript and html5.

$10 USD en 7 jours
(0 Commentaires)
0.0
rbo58eefc933fa56

i worked 5 years on front end developement and dom maniplation using jquery, infact i already soved the issue have the code ready

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
pirateos

hello, i already fixed it and if you have further suggestions I can help you on them don't hesitate to contact me if you want a solution for your problem.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
archanagsw2010

Hi, I am very much interested in this task. I am having more than 12 years experience in front end technologies. please give this work to me to prove myself. Thanks.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
Moilu

Hola soy de Mexico. No comprendo bien cual es el problema pero si gustas puedes mandarme msj y vemos si te puedo ayudar. @moilu6 en Twitter Saludos

$20 USD en 2 jours
(0 Commentaires)
0.0
Aryan2432

I saw your code, and I believe I can fix it. As for my experience , I can write ES6 javascript code,and also HTML and CSS. I will fix your code and do what you want me to do within a day. Thank you for considering me.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
jairsh

Hola que tal Soy Guillermo Perez , desarrollador FullStack puedo revisar tu script para solucionar el ajuste de la tabla y se muestre de la manera correcta que necesitas. Quedo pendiente. Saludos.

$25 USD en 3 jours
(0 Commentaires)
0.0