Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Ďalšie informácie

Ajax synchronous call failed in Firefox, worked in IE, Chrome and Safari

  • 1 odpoveď
  • 4 majú tento problém
  • 1 zobrazenie
  • Posledná odpoveď od the-edmeister

more options

Dear Sirs,

I need to use synchronous Ajax call which breaks on opening in synchronous mode. The error is NS_ERROR_FAILURE. This code works perfectly in IE, Chrome and Safari. Please help. Regards, Mark

Here I included part of my code.

function PostRequest(MyUrl){

 var qXML = new XMLHttpRequest();

// some code
 
  qXML.open("POST", MyUrl, false);
  qXML.setRequestHeader('Accept', '*');
  qXML.setRequestHeader('Origin', '*');
  qXML.setRequestHeader('content-type','application/x-www-form-urlencoded');
        try {
         qXML.send(StringToPost);
     
// some code .....        

        } catch(err){
         alert(err + '\n...unavailable.\nYour request will appear in the new window.');
                 }; // post log

.....
Dear Sirs, I need to use synchronous Ajax call which breaks on opening in synchronous mode. The error is NS_ERROR_FAILURE. This code works perfectly in IE, Chrome and Safari. Please help. Regards, Mark Here I included part of my code. <pre><nowiki>function PostRequest(MyUrl){ var qXML = new XMLHttpRequest(); // some code qXML.open("POST", MyUrl, false); qXML.setRequestHeader('Accept', '*'); qXML.setRequestHeader('Origin', '*'); qXML.setRequestHeader('content-type','application/x-www-form-urlencoded'); try { qXML.send(StringToPost); // some code ..... } catch(err){ alert(err + '\n...unavailable.\nYour request will appear in the new window.'); }; // post log </nowiki></pre>.....

Upravil(a) cor-el dňa

Vybrané riešenie

Sorry, this forum is for Firefox user support, there may not be any Ajax developers providing support here this morning.

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.

Čítať túto odpoveď v kontexte 👍 0

Všetky odpovede (1)

more options

Vybrané riešenie

Sorry, this forum is for Firefox user support, there may not be any Ajax developers providing support here this morning.

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.