[Javascript] Firefox 1.5+ and Ajax responses
Jonathan Buchanan
jonathan.buchanan at gmail.com
Mon Oct 2 08:02:57 CDT 2006
On 10/2/06, Bosky, Dave <Dave.Bosky at htcinc.net> wrote:
> I've got an AJAX enabled page which sends a few parameters to a Servlet and
> returns a simple 'Y or N' back to the page.
>
> For some reason in Firefox 1.5 the 'readystate' parameter seems to
> undefined, my 'onreadystatechange' function checks the 'readystate' for a
> value of '4' but firefox never sets it to 4.
>
> So nothing happens.
> <snip>
You have "request.readystate" in your code - shouldn't this be
"request.readyState"?
I think the condition being tested is equivalent to "undefined == 4"
as a result.
Jonathan.
More information about the Javascript
mailing list