Претражи подршку

Избегните преваре подршке. Никада од вас нећемо тражити да зовете или шаљете поруке на број или да делите личне податке. Пријавите сумњиве радње преко „Пријавите злоупотребу” опције.

Learn More

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

  • 1 одговор
  • 4 имају овај проблем
  • 1 преглед
  • Последњи одговор послао 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>.....

Измењено од стране cor-el

Изабрано решење

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.

Прочитајте овај одговор са објашњењем 👍 0

Сви одговори (1)

more options

Одабрано решење

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.