I need help with this simple form intergration.
-
Ok I have created a simple search form.
So I need a way in which when I input a search term, the form returns result from google and displays them below the page. Thanks.
You need to trigger it off of either the javascript events onblur, onkeyup or onkeydown and then use a ajax message to a serverside script to query google and then return the results to you page....or you can google, "on how to add a google search to your site", maybe "with autcomplete" as an additional search parameter.
Chris J www.redash.org
-
You need to trigger it off of either the javascript events onblur, onkeyup or onkeydown and then use a ajax message to a serverside script to query google and then return the results to you page....or you can google, "on how to add a google search to your site", maybe "with autcomplete" as an additional search parameter.
Chris J www.redash.org
Do you really want asyncronous results? If not, you can just handle the POSTed data back to the script...something like:
if(isset($_POST['search']))
{
//do something with the search here
}
else
{
//print the search form since nothing's been submitted yet.
}Of course using AJAX would be pretty nifty :)
-
Do you really want asyncronous results? If not, you can just handle the POSTed data back to the script...something like:
if(isset($_POST['search']))
{
//do something with the search here
}
else
{
//print the search form since nothing's been submitted yet.
}Of course using AJAX would be pretty nifty :)
I should add that jquery can make the whole ajax thing much easier to do.
Chris J www.redash.org