Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Learn More

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

  • 2 respostas
  • 3 têm este problema
  • 1 visualização
  • Última resposta de 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.

Solução escolhida

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

Ler esta resposta 👍 0

Todas as respostas (2)

more options

Solução escolhida

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