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.
Silverlight....
Member
431 Points
369 Posts
Need help for AJAX
Dec 06, 2012 04:49 AM|LINK
Hi All,
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]
raju dasa
Star
14412 Points
2452 Posts
Re: Need help for AJAX
Dec 06, 2012 05:15 AM|LINK
Hi,
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:
http://msdn.microsoft.com/en-us/library/e5x4xz73%28v=vs.80%29.aspx
rajudasa.blogspot.com || blog@opera
Silverlight....
Member
431 Points
369 Posts
Re: Need help for AJAX
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?
raju dasa
Star
14412 Points
2452 Posts
Re: Need help for AJAX
Dec 06, 2012 05:27 AM|LINK
Hi,
because XMLHttpRequest object communicates with webserver.
check this:
http://www.w3schools.com/xml/xml_http.asp
rajudasa.blogspot.com || blog@opera
Silverlight....
Member
431 Points
369 Posts
Re: Need help for AJAX
Dec 06, 2012 05:33 AM|LINK
Perfectly understood.
Thanks for resolving my problem