Question:
whats wrong in this ajax code? this is working fine in IE but not working in firefox.?
parwan005
2009-02-18 23:07:49 UTC
here is my code, its working fine in IE but not in FF? can you pls write the correct code if possible.
Four answers:
MOZ
2009-02-19 00:04:55 UTC
Try This...









CHANGES MADE:

req.send() -> req.send(null)

responsetext -> responseText

readystate -> readyState



Cheers!
George Edison
2009-02-18 23:40:44 UTC
Hmmm. You need some error checking code. Try checking to see if req.send() is successful or even if req was created properly. If all of that is working, check what req.status is when the request completes. Or even readystate...
?
2016-10-06 15:30:06 UTC
good day, it works on my laptop. no longer something is incorrect with the code. I examined the code utilising IE 7/8 and Firefox 3, i did no longer discover any undertaking. i comprehend what the undertaking is. the protection good factors of IE is block your script. in case you need to observe an advice bar doping up decrease than the handle bar of your IE browser. on the different hand you may restoration this subject via : open IE and click tactics menu >> click internet decision >> click on protection tab >> click custom point enable any decision it is attempting to dam or disable internet scripts. in case you're uncertain of what you're doing click on reset and set the point to medium. next goto progressed tab >> restoration defaults. close and reopen IE and that could desire to artwork.... please seem for any advice bar that pops up decrease than the handle bar.
rafiq_zahid
2009-02-18 23:41:49 UTC
There is just a support of IE



Try to add code for Firefox much better to use some lib those are compatible with all browsers

There are Jquery or prototype



http://www.zahipedia.com


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...