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

Since Update to FF30 always get TypeError: Constructor XMLHttpRequest requires 'new', before no problem. What changed?

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

more options

Since the update this morning to FF30 i get the errormessage from the js

TypeError: Constructor XMLHttpRequest requires 'new'

Code:

function ajaxManager() { var request; var versions=new Array('MSXML2.XMLHTTP.7.0','MSXML2.XMLHTTP.6.0','MSXML2.XMLHTTP.5.0','MSXML2.XMLHTTP.4.0','MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP'); if(document.getElementById) { if(window.XMLHttpRequest()) { request=new XMLHttpRequest(); } if(window.ActiveXObject) { for(var i=0;i<versions.length;i++) { try{ request = new ActiveXObject(versions[i]); } catch(exception) { } } } } return request; } </p>

I hope someone know what changed or what i missed.

Since the update this morning to FF30 i get the errormessage from the js TypeError: Constructor XMLHttpRequest requires 'new' Code: function ajaxManager() { var request; var versions=new Array('MSXML2.XMLHTTP.7.0','MSXML2.XMLHTTP.6.0','MSXML2.XMLHTTP.5.0','MSXML2.XMLHTTP.4.0','MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP'); if(document.getElementById) { if(window.XMLHttpRequest()) { request=new XMLHttpRequest(); } if(window.ActiveXObject) { for(var i=0;i<versions.length;i++) { try{ request = new ActiveXObject(versions[i]); } catch(exception) { } } } } return request; } I hope someone know what changed or what i missed.

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

Found a working solution now by myself:

"if(window.XMLHttpRequest()) {"

changed to

"if(window.XMLHttpRequest) {"

Seems the old way i used now not working anymore

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

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

more options

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

Found a working solution now by myself:

"if(window.XMLHttpRequest()) {"

changed to

"if(window.XMLHttpRequest) {"

Seems the old way i used now not working anymore

more options

See the Firefox 30 compatibility document for details: https://developer.mozilla.org/en-US/Firefox/Releases/30/Site_Compatibility