We inject the spinner image into the page and reposition it depending on which field is doing the request. Very simple!
The XHTML
<select class="ajax">
<option value="">-- Select a Site--</option>
<option value="David Walsh Blog">David Walsh Blog</option>
<option value="Script & Style">Script & Style</option>
<option value="Band Website Template">Band Website Template</option>
</select>
<br /><br />
<input type="text" id="my-text" class="ajax" />
Elements with the “ajax” CSS class will be our target.
0 comments:
Post a Comment