Thought I would mention... yesterday we found a bug with JQuery and Google Maps, if the placement of the google maps .js library is wrong it was stopping us hiding a class with jquery. We are going to try and investigate a bit more if we get a chance, but just incase anyone starts experiencing odd jquery behaviour with Google... that could be why.

Tom

On 9/22/06, Klaus Hartl <[EMAIL PROTECTED]> wrote:


Michael Geary schrieb:
>>> just a little thing: I'd check additionally for existence of
>>> GBrowserIsCompatible just in case the google maps script
>>> is not loaded for whatever reason:
>>>
>>> if (GBrowserIsCompatible && !GBrowserIsCompatible()) ...
>
>> I changed the check to
>>
>> // If we aren't supported, we're done
>> if (!GBrowserIsCompatible || !GBrowserIsCompatible()) return this;
>
> That doesn't do what you want. If GBrowserIsCompatible is not defined, it
> throws an error when you try to reference it.
>
> Try this instead:
>
>  if (!window.GBrowserIsCompatible || !GBrowserIsCompatible()) return this;
>
> Or the way I like to do it:
>
>  var bc = window.GBrowserIsCompatible;
>  if( !bc || !bc() ) return this;

Mike, thank you, I was thinking about that all day, sometimes that
boolean logic thing causes me headache...

Is also possible?

if ( !(window.GBrowserIsCompatible && GBrowserIsCompatible()) )

If you don't say yes my headache gets worse!


-- Klaus

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



--
Tom Holder

Managing Director
Atom Software Ltd
t: 01722 770001
f: 0117 923 9922
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to