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?
posted by EndsOfInvention to computers & internet (6 answers total) 3 users marked this as a favorite
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?