Escolar Documentos
Profissional Documentos
Cultura Documentos
• Ajax Benefits
Need of Ajax
• These are the web applications that have the functionality and features of
traditional desktop applications.
• Transfers the processing necessary for the user interface to web client and keep
the bulk of the back on to server.
• Benefits
• Richer
• More Responsive
• Client /Server Balance
• Asynchronous Communication
• Network Efficiency
Introduction of AJAX
• The intent is to make web pages feel more responsive by exchanging small
amounts of data with the server behind the scenes, so that the entire web page
does not have to be reloaded each time the user requests a change.
• This is intended to increase the web page's interactivity, speed, functionality, and
usability
• AJAX◊(Js+Css+Dom+xmlHttpRequest+xml)
• Ajax is not a technology. It’s really several technologies, each flourishing in its
own right,
• And JavaScript for carrying events from HTML body to HTML head.
• The XMLHttpRequest object calls the callback() function and processes the
result.
Simple Example
Why Ajax Become Popular
• Sites like
Google Groups,
Google Suggest,
Flickr,
• These projects demonstrate that Ajax is not another technology that only works in
a laboratory, but also practical for real-world applications And also Ajax
applications can be any size, from the very simple, single-function Google
Suggest to the very complex and sophisticated Google Maps.
• Most user actions in the interface trigger an HTTP request back to a web server.
The server does some processing — retrieving data, crunching numbers, talking
to various legacy systems — and then returns an HTML page to the client.
• This approach makes a lot of technical sense, but it doesn’t make for a great user
experience and arise questions like
While the server is doing its thing, what’s the user doing? --Waiting.
How Ajax Application Model Works
• Instead of loading a webpage, at the start of the session, the browser loads an
Ajax engine — written in JavaScript .
o The Ajax engine allows the user’s interaction with the application to
happen asynchronously — independent of communication with the server.
So the user is never staring at a blank browser window
Ajax FrameWorks Types Ajax Frame Works Direct Ajax FWs Ajax component
Server-driven Ajax language/platform
Frameworks by language/platform
• Ex:-Wt(witty)
• Java -- Such frameworks permit the use of Java web services interactively with
web pages.
• .NET
• PHP
• Xajax ,Sajax
Path
Ajax Benefits
• --More Responsive
• --NetWork Efficiency