Before we actually show ajax in a real scenario we're going to walk through mechanics of how ajax works. In this simple demo you are going to exam what an ajax call is and compare it to normal http requests |
"<select>\n\
<option value=\"NJ\">NJ</option>\n\
<option value=\"NY\">NY</option>\n\
</select>"
"<select>\n\
<option value=\"NJ\">NJ</option>\n\
<option value=\"NY\">NY</option>\n\
</select>"
Now you have basic understanding of what javascript does and how it manipulates the DOM we will see how ajax makes use of the DOM and and set of API calls to fetch some data from a remote and inject this data into the DOM
<select>
<option vale="WM">West Midlands</option>
<option vale="GM">Greater Manchester</option>
<option vale="WS">Wiltshire</option>
</select>
You may also want to use visual panels to communicate related information, tips or things users need to be aware of. |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|