Thanks a lot Larry,

it works now perfectly if I launch my load() function just before the
</body>, knowing after the <table> has been completed.

You can have my best beers then :-)
http://translate.google.com/translate?tl=en&hl=en&sl=fr&ie=UTF-8&u=http://bieromakhs.free.fr//Classement_Bieres.php%3Fcat%3D1

Cheers,

Bieromakhs
http://bieromakhs.free.fr

On Apr 16, 5:46 am, "[email protected]" <[email protected]>
wrote:
> On Apr 15, 5:04 pm, bieromakhs <[email protected]> wrote:
>
> > Hi all,
>
> > I have integrated as simply as I can a map on this page  
> > :http://bieromakhs.free.fr/Bieromaps.php
>
> > This works perfectly on Firefox 2/3 and Chrome, but the map is awfully
> > shifted on Internet Explorer 7.
>
> This is the classic "top left corner" problem.
>
> The problem you are seeing is a symptom of IE not being able to
> correctly calculating the size of the map div at the time the GMap2
> object is created.
>
> Lots of things can confuse IE, in your case I would have thought it
> was your terribly invalid html: 1588 Errors, 2 
> warning(s)http://validator.w3.org/check?uri=http://bieromakhs.free.fr/Bieromaps...
>
> In particular, a map div in a table which has missing tags will cause
> this problem.
>
> While your html _should_ be valid, you could probably work around the
> issue by telling the API the size of the map div when you construct
> the GMap2 object by passing it the optional "size" argument:
> map = new GMap2(document.getElementById("map"), {size: new GSize
> (720,600)});
>
> The major problem however, is this line:
> window.onload = load();
>
> The syntax is incorrect.  It executes the load function immediately
> (inline) which causes your problem, as the table hasn't been
> completely defined yet, then assigns the result (null) to the onload
> function (overwriting the montre function).
>
>   -- Larry
>
>
>
> > I have seen a similar problem here 
> > :http://www.seniorfocusonline.com/Assisted_Living_Apartments/CHANDLER.CTY
> > but didn't get the right solution.
>
> > Thanks,
>
> > Bieromakhshttp://bieromakhs.free.fr
--~--~---------~--~----~------------~-------~--~----~
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