02-04-2012, 03:38 PM
Ajax
Ajax.pptx (Size: 1.17 MB / Downloads: 115)
What To Expect From This Session
Fundamentals of Web Technology.
How server handle the request.
MVC Architecture.
Synchronous and Asynchronous Request.
Basics of Ajax.
Ajax Example.
BIG picture of how Ajax works.
Code samples.
What Not To Expect From This Session
Inner workings of Ajax (Ajax engine).
JavaScript and XML.
Live working example of Ajax.
What is Ajax?
Asynchronous Javascript And XML
What is so cool about Ajax?
Connection between client side script and server side script.
Better user experience
More flexibility
More options
Multitasking
How does Ajax work?
A client script asynchronously calls a server side function.
Steps
Add a reference to the Ajax engine.
Must tell the application how to handle ashx files
Must register the class to be used by Ajax.
Create a PUBLIC function in the server side that will be accessed from the client script.
Mark the function so it is available on the client side.
Access the server side function through client side script.
Handle your need.
Samples
Sample 1: Get Time from the server.
Sample 2: Passing parameters to the server.
Sample 3: Passing objects as parameters.
Sample 4: Getting a class from the server.
Sample 5: Google Suggest mock up.
Sample 6: Writing your own AJAX.