Here is a simple tutorial for AJAX aspirants who just want to know how ajax works wihout digging into server side programming.
Needed Tools:
Now make another file "sample.txt" from where the data will be fetched to html page.
Let the content be anything u want.
Working:
Will provide an in-detail explaination soon
as am havin exams now
Needed Tools:
- Text Editor (preferably Notepad++)
- IE 6+, Firefox 0.8+.
- A html file (named as ajax.html)
- A text file (named as sample.txt)
- I hav named it "ajax.html"
Now make another file "sample.txt" from where the data will be fetched to html page.
Let the content be anything u want.
- Here are mine "sample.txt" contents:
Working:
- open "ajax.html" in browser
- when u click on "make a ajax request" button the content of file "sample.txt" will be fetched without a reload of webpage.
- thats it.
Will provide an in-detail explaination soon