> Here is the map as is...
>
> http://wesco.jp-clients.com/branch_search/index.php
>
> Right now, you can search by city or state, and thats it. But i would
> ALSO like it to be able to search by branch_id, which is one of the
> table rows in my database. It's a simple 4 digit identifier,
> completely seperate from the regular id.

In the current page, poking the 'search' button executes
searchLocations().
searchLocations() blindly geocodes whatever is in the 'addressInput'
box.
You want it to do something different depending on what is actually
gven in the 'addressInput' box, so change your searchLocations() to
analyse it first.
Write some javascript to do a simple analysis on the string from
'addressInput'.
If it's wholly numeric, do whatever you have to do to treat it as
branch id.
If it's not, geocode it as before.

While you're there, you could usefully add some error detection to
provide hints to the user; e.g. if they supply a 3-digit number, or
nothing - don't process it but tell them what you expected.

Not a maps question.

cheers, Ross K

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

Reply via email to