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

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

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

Todas as respostas (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