Changes

AJAX - Function - LiveSearch

59 bytes added, 08:18, 31 August 2016
Step 4. Using the function
The below image shows what the form looks like and labels all the fields with ids used by the HTML and javascript code to make the tutorial easier to follow.
[[File:Formwithfields.png|800px]]
== Step 3. We put in the JavaScript block. ==
To perform a live search type into the box "Please Enter your search term". After two letters have been entered you will see a list of all the names that start with those two letters.
[[File:Searchresults2.png|800px]]
You can now click on the record you would like to insert and the fields on the form will be populated with the specified values.
[[File:Searchandinsert.png|800px]]
This is how to get a simple ajax live search call working on a form. It can be changed around to suit your needs.
 Under construction [[Category:Topic:bxp APIAJAX_-_Start_Here]]  
[[Category:Topic:JavaScript]]
[[Category:Topic:AJAX]]
7,528
edits