On Jul 7, 9:39 pm, Rossko <[email protected]> wrote:
> > However, if the map is within a form tag, it doesn't work in FF3 or
> > IE7. It does still work correctly in Safari 4
>
> I would imagine that is because nested form tags are not allowed, and
> the Googlebar is a form.
>
> In the 2.132d version, the Googlebar starts off closed, and seems to
> add its form tags after being opened, so I guess it gets away with it
> there.
>
> In the 2.x version, the bar intialises open so I suppose it tries to
> add the form tags at that time and runs into some complication with
> the nested forms during DOM building. It might all go away if you
> initialise the map with an onload?
>
> cheers, Ross K
Thanks for the good advice. Adding an onload did not solve the
problem, however, with an onload and the following googleBarOptions
the page works correctly in FF and IE.
googleBarOptions :
{
showOnLoad : "true",
adsOptions:
{
client: "pub-XXX",
adsafe: "high",
language: "en"
}
}
I have modified my non-functioning example at
http://207.97.241.26/MapWithFormTagv2x.html
with the above options and an onload handler, if anyone wants to see
it in action.
Google has said that the effect of style:"new" is going to become the
default at some point, so possibly this will break when they do so.
Hopefully they'll handle this case, even though it's invalid markup.
I guess I'll keep my eyes peeled.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---