Call lsc.execute('query string here');
If you want to call that from anywhere other than the same function
that initializes the control, you'll need to make sure to make lsc
global.
Jeremy R. Geerdes
Effective website design & development
Des Moines, IA
For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
[email protected]
Unless otherwise noted, any price quotes contained within this
communication are given in US dollars.
If you're in the Des Moines, IA, area, check out Debra Heights
Wesleyan Church!
And check out my blog, Adventures in Web Development, at
http://jgeerdes.blogspot.com
!
On Mar 26, 2009, at 11:20 AM, Johnny wrote:
>
> Hi,
>
> I changed my code from the google map api to google ajax api, and I'm
> using the local search through this library, however I having a big
> problem finding a way to call the search through javascript like I
> used to do with the older version where I just need to type execute
> ("string");.
> I'm adding the control like this:
>
> lsc=new google.elements.LocalSearch(googleBarOptions);
> map.addControl(lsc,new GControlPosition
> (G_ANCHOR_TOP_LEFT, new GSize
> (-282, -2)));
>
> Does anybody know how can I perform a search through javascript with
> this library.
>
> Thanks
>
> Regards.
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google AJAX APIs" 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-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---