Ajax http request problem

I’m learning this tutorial from YouTube:

And I’m having this error on my wampserver

And here is from my web host site[error]:

Site Test

I paste my codes on pastebin, here:




I see from the file:/// that you’re running it as a local client file. That won’t work. What you need is a local server from which to run your code.

The following article has good info on which options will work for you.

Live site

I’m using both wampserver and online.

This error is from the live site:

error message from the wampserver:

Good one - you have a response and responseText but no responseXML, so something’s wrong with the formatting of your XML.

I see that the following is attached to the end of the response:

<!-- Hosting24 Analytics Code -->
<script type="text/javascript" src="http://stats.hosting24.com/count.php"></script>
<!-- End Of Analytics Code -->

That is quite likely to be the cause of the problem.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.