Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 06, 2012 05:33 AM by Silverlight.Shailendra
Dec 06, 2012 04:49 AM|LINK
I recently started to learn AJAX from http://www.w3schools.com/ajax/ajax_example.asp They gave some running examples on it. I simple copied the code and paste it in my notepad saved with .html and tried to run it. But i unable to run it.
When I read the code i found 1 function xmlhttp.open("GET","ajax_info.txt",true); where .txt file used. So i created a new file having the same name as they mentioned and saved it in the same directory. But I unable to execute my first AJAX application.
Please help me.
Thanks [Note: I worked on ajaxcontroltoolkit.dll]
Dec 06, 2012 05:15 AM|LINK
try to run ur html file from webserver not from filesystem.
Its better running it from VisualStudio (which uses its built-in webserver).
check this site:
Dec 06, 2012 05:19 AM|LINK
Gr8!!! it resolved.. It ran using IIS and WAMP too. Bu the question is i didn't use any server side scripting then why i require web server?
Dec 06, 2012 05:27 AM|LINK
because XMLHttpRequest object communicates with webserver.
Dec 06, 2012 05:33 AM|LINK
Thanks for resolving my problem