hi all,
i followed my first AJAX tutorial on the web:
http://www.dhtmlgoodies.com/index.html?whichTutorial=ajax-basics

the AJAX is working fine on the site itself,
but when i download the source codes provided with the tutorial, it won't run from my machine.
i checked this with several tutorials and all same. i.e. no results when run from the desktop machine.

i tried with IE7 and ff 4.0

any help would be greatly appreciated.
thanks a lot.

When using ajax, from your local machine, you need a local web server installed. You cannot open your test file via "file://...". You must open your file using "http://..." since ajax makes http requests. If you are using the "file" protocol instead of the "http" protocol, it will not work.

Also, your ajax request can only be made to files that exist on YOUR own server, not to external/remote servers.

If you do not have a local web server installed, you can try installing WAMP:
http://www.wampserver.com/en/

When using ajax, from your local machine, you need a local web server installed. You cannot open your test file via "file://...". You must open your file using "http://..." since ajax makes http requests. If you are using the "file" protocol instead of the "http" protocol, it will not work.

Also, your ajax request can only be made to files that exist on YOUR own server, not to external/remote servers.

If you do not have a local web server installed, you can try installing WAMP:
http://www.wampserver.com/en/

this is very benificial information.
thanks a lot.
i will try this way.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.