Page 166 - CITS - Computer Software Application -TT
P. 166

COMPUTER SOFTWARE APPLICATION - CITS




                                                    How AJAX Works































           1  An event occurs in a web page (the page is loaded, a button is clicked)

           2  An XMLHttpRequest object is created by JavaScript
           3  The XMLHttpRequest object sends a request to a web server
           4  The server processes the request
           5  The server sends a response back to the web page
           6  The response is read by JavaScript

           7  Proper action (like page update) is performed by JavaScript








































                                                           153

                             CITS : IT&ITES - Computer  Software Application - Lesson 37 - 46
   161   162   163   164   165   166   167   168   169   170   171