Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

Тази тема беше затворена и архивирана. Моля, задайте нов въпрос ако имате нужда от помощ.

Using event.type in ajax is the error

  • 1 отговор
  • 1 има този проблем
  • 45 изгледи
  • Последен отговор от guigs

more options

I would like to submit a fix to all the ajax problems on converting or fixing any ajax issues. When you are having trouble with a ajax request with Firefox first thing you need to do is look for any event.type within the responses. if you're using any to trigger on ready be sure to change them over to the default names of the same Id used to check ready state. for example what i noticed with them are Google chrome allows event.type to return the required id and all. Firefox does not. So here is the example...

Sent out ajax request. returned it with... ajax_blah.onreadystatechange=function(){ /*event.type.readyState does not work in Firefox but does in chrome*/ /*ajax_blah.readyState works onGoogle chrome and Firefox */ if(ajax_blah.readyState==4 && ajax_blah.status==200){ /*fire*/ } }


So Anyways quit using events unless you find a alt small fix. function(event) may help? you tell me but i wanted to help people searching for a fix. Enjoy

I would like to submit a fix to all the ajax problems on converting or fixing any ajax issues. When you are having trouble with a ajax request with Firefox first thing you need to do is look for any event.type within the responses. if you're using any to trigger on ready be sure to change them over to the default names of the same Id used to check ready state. for example what i noticed with them are Google chrome allows event.type to return the required id and all. Firefox does not. So here is the example... Sent out ajax request. returned it with... ajax_blah.onreadystatechange=function(){ /*event.type.readyState does not work in Firefox but does in chrome*/ /*ajax_blah.readyState works onGoogle chrome and Firefox */ if(ajax_blah.readyState==4 && ajax_blah.status==200){ /*fire*/ } } So Anyways quit using events unless you find a alt small fix. function(event) may help? you tell me but i wanted to help people searching for a fix. Enjoy

Всички отговори (1)

more options

Locking, good find! Have you considered filing a bug as well?