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
>
> >


--~--~---------~--~----~------------~-------~--~----~
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