Awesome! From that I've made two functions, one that will execute a
search and one to clear all results (because I couldn't find an easy
way to do that either).
function executeSearch(term){
var lastForm = document.forms.length - 1;
document.forms[lastForm].elements[0].value = term;
document.forms[lastForm].elements[1].click(); // initial search
}
function clearGooglebar(){
var lastForm = document.forms.length - 1;
document.forms[lastForm].elements[0].value = " "; // hint text
document.forms[lastForm].elements[1].click(); // initial search
}
obviously clear just search for a blank space, as searching for
nothings does... nothing. This is very useful for me, thanks for that
link!
On May 30, 5:40 pm, Rossko <[email protected]> wrote:
> > Is there a way I can execute a search on the googlebar from another
> > link, for example a link next to the map that would search "coffee"
> > and load the results in th googlebar?
>
> Not officially, but see this -
> http://apitricks.blogspot.com/2008/12/googlebar-hack.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---