Java Reference
In-Depth Information
Figure 10.7: Displaying a State
You can click on as many states as are returned from the search. The HTML will be build
dynamically to add the additional information for the states.
We will now examine the XML messages that the web browser exchanges with the web
server to preset this information.
XML AJAX Messages
There are two different XML request/response pairs that are sent. The first request/re-
sponse pair performs the search. If you enter the string “Miss” and select search, the follow-
ing XML message will be sent to the web server:
<request type="search">
<search>Miss</search>
</request>
There is no specified XML format for AJAX websites. You will have to analyze the mes-
sages sent by an AJAX site to see what its structure is. This can be done with a tool such as
WireShark. WireShark was covered in Chapter 2, “Using Network Analyzers”.
Search WWH ::




Custom Search