Browser compatibility - object tag with google maps in ie8

Dear Friends,

I am having a issue where i am unable to display google maps inside an object tag. It works fine in firefox but not in internet explorer.

In ie8 i can make it work by using iframes, but its then not strict xhtml compliant.

Is it possible to use the object tag or any other standards compliant way to get google maps displayed in ie8?

You can see the problem live in these pages:
Object tag, so not working - http://kourageride.org/route_not_working.html
Iframe, so its working - http://kourageride.org/route.htm

<object id=‘map_canvas’ data='http://maps.google.com/maps?f=d&amp;
</object>

vs.

<iframe id=‘map_canvas’ frameborder=“0” src='http://maps.google.com/maps?f=d&amp;sou
</iframe>

Any help would be greatly appreciated.

Thanks a lot for reading this.

Hi and welcome to the forums.
First up, 5 fluff posts so you can post a link is not a good idea.

Right then, have a read of:
http://blog.poplabs.com/2009/08/embedding-google-maps-iframe-to-object-with-xhtml-strict/

They came up with a conditional solution for IE.

Dear Spikez,

Thanks a lot lot for the info. :-)…

Sorry about the fluff posts, when it suddenly said i had to make 5 posts min, brought back memories of astahost where they force members to post to make their own site more popular. Helping is something that we do on our own terms, not when somebody arm twists us into doing it, don’t you think so? And when we are in the middle of some crazy things and somebody asks you to jump hoops like some govt official it sort of pisses you of. Hope you understand.

I realize you do it to prevent spam, still…

Sorry again, and thanks a tonne. :-)…