1 / 13

A Beginners Session to Ajax

A Beginners Session to Ajax. Asynchronous client calls to the server. A “Post Back” free environment. By Jonas Stawski. What To Expect From This Session. Basics of Ajax BIG picture of how Ajax works Code samples. What Not To Expect From This Session. Inner workings of Ajax (Ajax engine)

elina
Download Presentation

A Beginners Session to Ajax

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A Beginners Session to Ajax Asynchronous client calls to the server. A “Post Back” free environment. By Jonas Stawski

  2. What To Expect From This Session • Basics of Ajax • BIG picture of how Ajax works • Code samples

  3. What Not To Expect From This Session • Inner workings of Ajax (Ajax engine) • Atlas

  4. What is Ajax? Asynchronous Javascript And XML

  5. What is so cool about Ajax? • Connection between client side script and server side script. • Better user experience • More flexibility • More options

  6. A client script asynchronously calls a server side function. How does Ajax work?

  7. Classic VS Ajax

  8. What is Microsoft doing about it?

  9. Ajax In the Real World • Windows Live Local • Windows Live Mail (Hotmail Beta) • Google Maps • Google Suggest

  10. Scenario Car Classifieds website has a dropdown with the makes of all the cars. Based on the selection of the “makes” dropdown the “models” dropdown has to be populated with the correct models provided by the manufacturer.

  11. 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.

  12. 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.

  13. References Ajax.NET Proffesional http://www.schwarz-interactive.de/ Ajax: A New Approach to Web Applications http://www.adaptivepath.com/publications/essays/archives/000385.php Latest AjaxPro.dll: http://www.schwarz-interactive.de/

More Related