Java Reference
In-Depth Information
Figure 10.5: WireShark Examining AJAX
Only the very top request shown in Figure 10.5 is actually used display a complete HTTP
page. All of the other requests are to handle receiving the state's name, and displaying the
drop-down.
As you type in the state's name, the web browser repeatedly requests a list of states that
match what you have typed so far. This data is obtained from the following URL:
http://www.httprecipes.com/1/10/states.php
As the state name is typed, the JavaScript on the page sends requests to the above URL
to obtain a list of states that match what has been typed so far. For example, if the user had
typed “Mi”, the following message would be returned.
<ul>
<li>Michigan
<li>Minnesota
<li>Mississippi
<li>Missouri
</ul>
Search WWH ::




Custom Search