AJAX - Change the Shape of World
>> Saturday, October 23, 2010
Would you like to learn AJAX By your own?
If yes, Join with Me(Tushar). And follow the steps given below:
- 1. Download prototype.js file from this website http://prototypejs.org/download
Prototype is JavaScript framework,
Prototype is freely distributable under the terms of an MIT-style license.
For details, see the Prototype web site: http://www.prototypejs.org
- 2. Create a new folder and store prototype.js in this folder after creating your first jsp file.
- 3. Save as ajax3.jsp.
• Write content on file ajax3.jsp as under.
- Then Create second jsp file and save as hello1.jsp.
- Then you start apache-tomcat and run our first jsp file whose name is ajax3.jsp.
- The output as under
- If you have any query on this application or want help, contact me on my
Then in text area you write Your Name (e.g: Tushar).Click to submit button.
So the output will be as under.· In this application, we use inbuilt function which provides AJAX environment.
· In ajax3.jsp file, we use function() or function(xhr). In this application, I have put a simple two textbox and one Button.
· When we write any name in textbox like Tushar, that time hello1.jsp perform its real role to fetch the name which we write in textbox and AJAX application replace name on the place stranger.
Benefit of this application: when we click on submit, a page is not reloaded, but only name will be replaced.
If You want More knowledge about AJAX, See my own presentation shown in below
Ajax Using JSP with prototype.js
View more presentations from Tushar Chauhan.