Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Mear ynfo

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

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

  • 2 antwurd
  • 3 hawwe dit probleem
  • 1 werjefte
  • Lêste antwurd fan 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.

Keazen oplossing

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

Dit antwurd yn kontekst lêze 👍 0

Alle antwurden (2)

more options

Keazen oplossing

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