Why doesn't Ajax work on my server?
October 30, 2010 5:57 PM Subscribe
When I upload
this W3Schools Ajax example to my own web hosting, it doesn't work. Why?
The example works fine when I try it on the W3Schools website. But if I copy the Ajax code (the whole section of code in the lefthand panel) into a separate HTML file and upload that to my web hosting, the page loads fine but the Ajax doesn't work - i.e. when I click the button, nothing happens.
Is there something obvious I'm missing about how to get Ajax working?
posted by EndsOfInvention to computers & internet (6 answers total) 3 users marked this as a favorite
Debugging tools like Firebug will show you why a script is failing and libraries like jQuery make these types of calls easier.
posted by null terminated at 6:09 PM on October 30, 2010