לאתר זה תהיה פונקציונליות מוגבלת בזמן שאנו מתחזקים אותו לשיפור החוויה שלך. אם מאמר מסויים לא פותר את הבעיה שלך וברצונך לשאול שאלה, קהילת התמיכה שלנו מחכה לעזור לך ב־Twitter תחת ‎@FirefoxSupport וב־Reddit תחת ‎/r/firefox.

חיפוש בתמיכה

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

מידע נוסף

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

  • 1 תגובה
  • 4 have this problem
  • 1 view
  • תגובה אחרונה מאת 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.

Read this answer in context 👍 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.