> MAKECOOKIE.CFM page contains all the details i have written above but > problem still persists what is going wrong with the code
What goes wrong is - Your map <div> is inside a table. Your javascript that creates the map runs inline, in the middle of the page. At the time IE runs the map creation, the table hasn't finished renderiing. All table elements are of indeterminate size still. % sizes don't count as they are a % of an indeterminate size. The map API asks the browser, what size the map div is the browser says 'zero'. The API builds a zero-sized map, which means grey areas and centred at top-left. Some time later, the browser finishes rendering the table and gives the map div some size. The table may never finish rendering correctly if the HTML is invalid. The API doesn't know anything about that and the map remains zero- size. Thousands of other people have done exactly the same mistake. The usual way to overcome is to delay building the map until after the table is rendered. You can do that by putting the maps script right at the end of the page or you can do that by putting the maps creation in a function and calling it by the page onload event An alternative way is to to use the optional GSize prameter in the GMap2 constructor to tell the API exactly what size map to make. Another alternative is to call checkResize() on the map after the page is rendered, by page onload event, to force the API to resize the map. 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 -~----------~----~----~----~------~----~------~--~---
