473,320 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

NS_ERROR_FAILURE with code 0x80004005 when using xmlhttprequest.send

dmjpro
2,476 2GB
Expand|Select|Wrap|Line Numbers
  1. xmlhttprequest request = ....;
  2. for(var i=0;i<app_size;i++){
  3.  request.open('GET',url[i],false);
  4.  request.send(null);
  5. }
  6.  
Can anyone explain where my code goes wrong ?
Mar 3 '10 #1
3 4105
gits
5,390 Expert Mod 4TB
from that small piece of code i guess that you overwrite the request-object in every loop step ...

kind regards
Mar 3 '10 #2
dmjpro
2,476 2GB
can't i re-utilize the xmlhttprequest object? what's the wrong with that?
one more thing .... what does it mean ..NS_ERROR_FAILURE?
Mar 4 '10 #3
gits
5,390 Expert Mod 4TB
you can but when you loop and always set and start a request with the same variable 'request' it will drop the reference to the 'old' request in every loop step ... you would have to create a new request-object before and might store it in an array or object ...

NS_ERROR_FAILURE should be an internal Firefox error that might be thrown from Firefox's xmlHttpRequest handler ...

kind regards
Mar 4 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Christian Schmitt | last post by:
Hi, I want to write a script that (run from a file on the local HD) reads another local html-file into a variable, then make some changes to it, and then output the result in a way that makes it...
6
by: Nathan | last post by:
Can I run two XMLHTTPRequest objects at the same time? Im able to get one to work without problems. If I put a call to a function inside the first ones onreadystatechange function, the 2nd ones...
5
by: chadschultz | last post by:
Hi there! A friend of mine asked about how to have a line of HTML be written based on whether or not a certain file exists in the server. So if the file is there, a line of HTML is printed; if the...
5
by: Cacho | last post by:
Hi I'm new to Ajax but I've used javascript from time to time. Now, I've a java application that will generate a page with data in a table. I want to make a link in each row so when user click...
3
by: perrog | last post by:
Hi! What is the expected behaviour when you send an XmlHttpRequest just before the page is about to unload? I'm sending a XmlHttpRequest on an onClick event, and I can inspect that the request...
6
by: Richard Maher | last post by:
Hi, Now that I am aware that JS on a page in Frame A can directly call a function on a page in Frame B, I no longer have to continue with my frameB.location.reload() fudge in order to get some...
2
by: rwiegel | last post by:
Hi, I'm trying to find a way to use XMLHttpRequest to recieve an xml file and then use XMLHttpRequest to send an xml file back based on the xml file I received. Can anybody help? Thanks in...
2
Plater
by: Plater | last post by:
I am using the XMLHttpRequest to send a request every 5ish seconds or so. Everything works fine until I take the server down that the object is trying to retrieve data from. Then the firefox...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.