So far we have seen a simple event occurring on a web page, an animated gif indicating some action is being taken and then some response returned and displayed on your page.
Our next step will be to type in some data in an input box and respond to the data on each key click. In this example we wish you to type in a town name and validate it against ones in our list.
First step then is to add an input text box:
When you type in a Town Name then AjaxCall3 will call ajax_function3.php. This will validate the key presses and return a list of towns (if any in the list). This list will produce dynamic links calling AjaxCall4. The purpose of this set of fuctions is to select the town name you have clicked on and place it back into the Town Name Input Box.
Once you are complete you can press the Click Here button. This will call AjaxCall5 and ajax_functions5 to provide some fully validated output.
Again all this is acheived without reloading the complete page. The Ajax calls update a section on the page.
This is quite complex the way the function calls are setup. So in tutorial Part 4 I am going to replace the separate files by adding a CMD name function to each of the `ajax` calls. This means there will only be one AjaxCall event and also one file containing the ajax functions.
[ -- link to Execute the Ajax Test Scripts Part 3 ]