Zoeken in Support

Vermijd ondersteuningsscams. We zullen u nooit vragen een telefoonnummer te bellen, er een sms naar te sturen of persoonlijke gegevens te delen. Meld verdachte activiteit met de optie ‘Misbruik melden’.

Learn More

Deze conversatie is gesloten en gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

Using event.type in ajax is the error

  • 1 antwoord
  • 1 heeft dit probleem
  • 17 weergaven
  • Laatste antwoord van 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

Alle antwoorden (1)

more options

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