Having problem with a simple AJAX call, I just keep getting an undefined error when I run this. I have checked the PHP file (getClassCodes.php) and that returns
data as it should, and I can see that working in the HTTP monitor in Netbeans, but when it goes to get the reponse - I just get 'undefined'.
Here is the simple PHP page:
and here is the JS file that I am using:
Please can anyone help.
kind regards
matt>
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
0
What is undefined? Is there a JavaScript error?
What does the status and statusText say?
Have you used Firebug to figure out what is going on?
Eric
Matt James
Greenhorn
Joined: Jan 28, 2004
Posts: 22
posted
0
Hi
That is the problem - it just says 'undefined' in the response. I will have a look at firebug if you think that it is useful.
kind regards
matt
Matt James
Greenhorn
Joined: Jan 28, 2004
Posts: 22
posted
0
Status of 200 and a Status Text of OK - not sure what to do with Firebug - still just getting 'undefined' as the responseText.