Jump to content
The Uniform Server Community
jvk

AJAX programming support?

Recommended Posts

Hello,

 

I am learning AJAX at the moment and am using the Uniform Server as a test server. However the scripts don't seem to be wordking!?

 

When I upload to an online server the scripts do work, so nothing wrong with that.

 

Does Uniform Server support Ajax and if so, what could I be doing wrong.

 

Thanks :)

Jvk

Share this post


Link to post
Share on other sites

Ajax is a global code... It does not require anything form the server. It is basically JavaScript + PHP so it should work... you must be doing something wrong.... Do you have a test script?

Share this post


Link to post
Share on other sites

Thanks for your reply.

I am learning Ajax, so it is the source code from a book. If I copy it from the uniform server as it is to my online server it does work!

So I don't think there is anything wrong with the code. But if you want the source code it might be best to find it at.

http://www.apress.com/book/downloadfile/3192

Although if you want I can also ad it to this forum.

 

You have tried XMLHttprequests from javascrip to a php script using Uniform server?

 

Thanks for listening.

JvK

Share this post


Link to post
Share on other sites

I tried the example from chapter2code.zip in both IE and Opera with no problems.

 

Try the following:

 

1) Delete everything in folder www with the exception of .htaccess

2) Copy all the uncompressed files for chapter two into www

3) Type the following into your browser address bar:

 

http://localhost/

 

You will see a directory listing, click on link sample2_1.html and it will pop up a message “You are not using so and so browser”

 

Like Olajide mentioned “Ajax is a global code... It does not require anything form the server”

 

If you still have a problem are there any reported errors or what is displayed?

 

All the best

Ric :)

Share this post


Link to post
Share on other sites

Just want to let you know that I've also been doing some Ajax work with Uniform Server and I havn't experienced any problems.

 

Kalpz

Share this post


Link to post
Share on other sites

General notes on debuging Ajax:

 

if the php url (the Ajax would use) works, your server related Ajax part is ok.

Call the php files that handle the Ajax call with params directly, to see if there are php parse errors.

 

the javascript part is browser related. test it in a MODERN browser as firefox 3, Opera 9/10, IE 8.

 

your js fetching might need a different url as the deployed version. (firefox and opera have nice error debugging for JS, use these to see if there are errors in paths)

 

 

im uniform server for developing, resarch and testing my comercial ajax stuff as well other stuff too...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...