Professional Documents
Culture Documents
And AJAX Frameworks: by Anupama V S7 Cs Roll No. 17
And AJAX Frameworks: by Anupama V S7 Cs Roll No. 17
By
Anupama V
S7 CS
Roll No. 17
CONTENTS
Introduction
Dissection
AJAX requirements
XHR
Browser dependency
AJAX Frameworks
Direct Ajax Framewoks
Indirect Ajax Frameworks
Advantages & Disadvantages
Conclusion
References
Introduction
AJAX
User back to filling the form again and pressing register button
until he succeeds.
Failed E-Mail Registration
The AJAX Way
User can try another and will be notified of its existence while
typing.
Yahoo! E-Mail Registration
The AJAX Way
What is happening ?
The Non AJAX Way
Serv
For Serve
er
m r Side
Script resp
Data
onse
What is happening ?
The AJAX way
Server Side
Script
Web page
The data being sent and response being received all happens in the
background asynchronously
AJAX Requirements
Set the request header that describes the characteristics of data being sent and
received
JavaScript must check for the browser type and create the object
appropriately
Direct AJAX simplifies the process of making AJAX requests and handling responses
For example in the jQuery AJAX framework, a form data can be posted by
invoking the post method provided by it.
It automatically creates XHR objects for the particular browser and makes the AJAX
call.
Direct AJAX Frameworks are accompanied by pre built components commonly used
in AJAX applications like Sugges List, Tabbed Pane, Calendar etc…
jQuery
Tabbed Panes
jQuery
Date Picker
jQuery
Suggest List
Indirect AJAX Frameworks
It eases the web development process when this high level language
coincides with the server side language
AJAX requests can be made only to the same domain due to single
origin policy
CONCLUSION
References
http://en.wikipedia.org/wiki/Ajax
http://www.w3schools.com/Ajax/Default.Asp
http://java.sun.com/developer/technicalArticles/J2ee/AJAX
http://computer.howstuffworks.com
http://en.wikipedia.org/wiki/Ajax_framework