Monday, 7 December 2015

58_AJAX_AUTO_SUGGEST

Auto Suggest Application


It is look like GOOGLE… When you type something and you also get dropdown for suggestion… Create one table And Insert some field as given below…



1) Write code in home.php File




http.open("GET","search.inc.php?type_value="+document.autosearch.your_key.value, true);


We are calling our findkey() function at onkeyup(), Now during the execution of function we want to call search.inc.php file and pass the value of textbox ”your_key” which is currently placed in “autosearch” form…


2) Open search.inc.php file and write the database query




3) Run home.php file in your browser



No comments:

Post a Comment