Use these resources:
http://www.google.co.uk/search?hl=en&q=javascript+test+string+for+numeric&meta=&aq=f&oq=

Modify your javascript function:
   function searchLocations() {
     var address = document.getElementById('addressInput').value;
by adding something like
     var numeric = do-some-test-that-i'm-not-going-to-write-for-you
(address);
     if (numeric) {
        alert("hey it's a number");
     }
     else
     {   // it's not a number so
        geocoder......  ;
        if (!latlng) {
           ....
        }
     }
} // end function

    function do-some-test-that-i'm-not-going-to-write-for-you
( string ) {
     // here goes a simple test of a string to see if it is only
numeric
     // and returns true or false
     // If you get that working you can enhance later to test if its a
four-digit number
} // end function

Just go one step at a time.  If you can't detect a branch id there's
no point worrying about what to do with it.

If you've got a business need for this and can't do it, hire someone.
This part is not maps-specific at all, it's standard javascript.

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