Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

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

  • 1 trả lời
  • 4 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi 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>.....

Được chỉnh sửa bởi cor-el vào

Giải pháp được chọn

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.

Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (1)

more options

Giải pháp được chọn

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.