Jump to content
Larry Ullman's Book Forums

Ajax Chap 11 Code Not Working


Recommended Posts

I jumped to the Ajax chapter since I needed to understand it in some other projects.

 

I entered in the code from the book and I can't get it to work.

 

I tried the downloaded code from the book site, and that didn't work either.

 

Do I have to put this code in my web site or can I run it from my loacal PC?

 

Thanks.

Link to comment
Share on other sites

Ajax is a combination of Javascript with a server-side language, and you need to be running a server to run the server-side scripts called from JS via Ajax.

If you have a Web server, you can use that, or a better option for testing purposes would be to install a virtual Web server software package like XAMPP (which most people here use) and run the scripts from there.

  • Upvote 1
Link to comment
Share on other sites

Thanks HartleySan, I installed Xampp and worked my way through some install errors, but got it to work.

 

I put the Ajax Test book code into the server and got it to work.

 

I have a question about this, however.

 

Do you guys edit your code outside Xampp and copy the code into it?

 

Or do you edit the code inside the Xampp server?

 

Thanks.

Link to comment
Share on other sites

 Share

×
×
  • Create New...