> BTW: I thought that removing the 'var' from declarations inside a
> function was sufficient to make them global.  Is this wrong ?
> I did as you said, though !

It's poor practice, and not gauranteed to work as you might expect.
See Micro$oft's own recommendation -
http://blogs.msdn.com/ie/archive/2006/08/28/728654.aspx

When IE7 for example encounters something like myTest = ...  , it will
wastefully chug through all the scopes looking for it.  It might
happen to find something else you weren't expecting - say you had in
your HTML a <div id='myTest' .... it will even try to use that.

IE6 just blows out if I remember right.

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