On Dec 15, 1:32 am, Charlie <[email protected]> wrote:
> Could it be that simple? Yes, I believe it is. However, I did it
> differently by adding two more options to the code so that it now
> checks to see if it is with or without the www, and if it is org or
> com. The reason I did it this way is that I remember reading somewhere
> that using the negative number on the substring length did not work on
> IE. Maybe it does on the latest version, not sure. Anyway, it seems to
> work now. Thanks Andrew!

Negative numbers don't work, or at least they are not part of the
standard, and I didn't use one. The substring starts at the third
character from the end, and runs to the end of the string by default:

 tld = tld.substring(tld.length-3);

Andrew

--

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