That's great, thanks. I guessed it was something like that.
Unfortunately I cannot show you my map as it is on a private network.

My code however is here:

http://yourpaste.net/1296/

So I need the following line:

searcher.setQueryAddition('Football Ground');

Do I also need the lines:

<script src="http://www.google.com/uds/solutions/localsearch/
gmlocalsearch.js"       type="text/javascript"></script>
@import url("http://www.google.com/uds/solutions/localsearch/
gmlocalsearch.css");

var lcs = new google.maps.LocalSearch();
map.addControl(new google.maps.LocalSearch());

you my guess I'm new to JavaScript..... I'm a C++ man really!

On Oct 17, 11:16 am, Jeremy Geerdes <[EMAIL PROTECTED]> wrote:
> Without a link to your exact implementation, it's impossible to tell  
> you exactly what you need to do, but there are two things that you're  
> going to want to do.  First, to add the hidden query information, you  
> want to use the searcher's .setQueryAddition method to add "Football  
> Ground", like this:
>
> searcher.setQueryAddition('Football Ground'); // where searcher is the  
> LocalSearch object you're using
>
> Second, you're going to have to intercept the form's submit event and  
> run a regular expression on the search query to make sure it matches  
> the general pattern of a post code.  For instance, if I was going to  
> do this in the US with a ZIP code, I would use:
>
> if(!query.match(/^\d{5}(-\d{4})$/)){alert("That's not a valid ZIP  
> code!");} // where query is the query that the user is trying to submit
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.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!
>
> On Oct 17, 2008, at 3:35 AM, superjeans wrote:
>
>
>
>
>
> > Hi,
>
> > I have created my searchable Google maps window for my website.
>
> > However, I want to be able to hide search criteria.
>
> > For example, I want the user to only enter a post code, but the actual
> > search that is sent off to the server has the search term "Football
> > Ground" as well as the post code. Thus, the search will only return
> > the football grounds near the post code.
>
> > I'm sure this is extremely straightforward - please could someone
> > point me in the right direction? Thanks- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX 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-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to