Page 1 of 1

need to display search results while typing

Posted: Mon Jul 23, 2007 3:07 am
by giliat
hello
i need to display search results while typing in the search box befor submiting the request to php page that connect to mysql
the result will display in an div or something



can anyone help me

:?:


thanks

Posted: Mon Jul 23, 2007 4:46 am
by volka
You probably want to use ajax to send a new request each time the value of the input/text element changes.
see also: http://www.w3schools.com/ajax/ajax_database.asp

i need something other

Posted: Mon Jul 23, 2007 5:13 am
by giliat
i need for a text box that the user type some text = name to search from DB
i like to display the results in a div while typing befor submit

Posted: Mon Jul 23, 2007 5:15 am
by volka
And you can achieve that be sending a request via ajax each time the value of the input/text field changes.
Have you read http://www.w3schools.com/ajax/ajax_database.asp ?