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".

Learn More

why is new XmlHttpRequest() throwing an exception in Firefox 4.0.1

  • 1 trả lời
  • 2 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

the following javascript has been working in prior version of Firefox (3.x) but is throwing an exception in Firefox 4.0.1 oddly enough the request object is being created in the try block but then is nulled in the catch block

   var xmlHttp;
   // branch for native XMLHttpRequest object
   if(window.XMLHttpRequest) {
   	try {

xmlHttp = new XMLHttpRequest();

       } catch(e) {

xmlHttp = null;

       }
   // branch for IE/Windows ActiveX version
   } else if(window.ActiveXObject) {
     ....
the following javascript has been working in prior version of Firefox (3.x) but is throwing an exception in Firefox 4.0.1 oddly enough the request object is being created in the try block but then is nulled in the catch block var xmlHttp; // branch for native XMLHttpRequest object if(window.XMLHttpRequest) { try { xmlHttp = new XMLHttpRequest(); } catch(e) { xmlHttp = null; } // branch for IE/Windows ActiveX version } else if(window.ActiveXObject) { ....

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

more options

A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25