Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

AJAX programming support?

Featured Replies

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

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?

  • Author

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

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 :)

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

ATOMIC Web Hosting 2007 - 2011

Shared Hosting - Reseller Hosting - Dedicated Servers - Virtual Private Servers (Request Dedicated/VPS Servers via E-mail)

E-mail: sales@atomicwebhosting.com Website: http://www.atomicwebhosting.com/

  • 1 year later...

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...

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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.