AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
Published byModified over 6 years ago
Presentation on theme: "AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006."— Presentation transcript:
AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006
So, why AJAX? – 1 Case study Desktop vs. Web application Web application: Simple Short turnaround time Flexible Works well with dynamic datasources Desktop: Responsive Dynamic UI
AJAX in Action – 1 Create request: – var xmlHttp = new XMLHttpRequest object; Connect to server – xmlHttp.open(“GET", url, true); Set the method to be invoked on response – xmlHttp.onreadystatechange = updatePage; Send request: – xmlHttp.send(null); Response is put into the “responseText” parameter of the request object The method setup upon request is invoked
Ajax in Action – 2 Examples: Google Maps Textfield auto-complete