I decided to dabble in some Ajax this afternoon and am having some issues with it. Here's the JS:
Nothing is received from the server - the response.readyState always seems to be 1. I'm trying this out locally using XAMPP, but I'd be surprised if this is a problem.PHP Code:
This is pretty much identical to all the examples out there, such as the one on devmo. What am I doing wrong? I'm stumped. Any enlightenment is greatly appreciated!