views:

30

answers:

2

Hi,

I am trying to show a google map using the following code:

<embed height="400" width="600" src="http://maps.google.com/maps/ms?ie=UTF8&amp;amp;hl=en&amp;amp;msa=0&amp;amp;msid=110069293083852065946.00047e2506156dd8d127b&amp;amp;ll=27.727526,85.310855&amp;amp;spn=0.021197,0.038581&amp;amp;z=14&amp;amp;iwloc=00047e251edcecb28ba7c&amp;amp;output=embed"&gt;

It works fine and shows the map correctly in my chrome browser by it shows missing plugin in firefox browser.

What is wrong with this? Is the code itself wrong?

+2  A: 

There's plenty of documentation on this:

http://code.google.com/apis/maps/documentation/javascript/basics.html

I've never seen it use embed, usually you just create it using JavaScript assign it to a div tag.

Lloyd
+1  A: 

Try using an iframe, not sure where that embed tag came from.

<iframe width="400" height="600" src="http://maps.google.com/maps/ms?ie=UTF8&amp;amp;hl=en&amp;amp;msa=0&amp;amp;msid=110069293083852065946.00047e2506156dd8d127b&amp;amp;ll=27.727526,85.310855&amp;amp;spn=0.021197,0.038581&amp;amp;z=14&amp;amp;iwloc=00047e251edcecb28ba7c&amp;amp;output=embed"&gt;&lt;/iframe&gt;
no
thnx it worked... what if iframe isdisabled
KoolKabin
The chances of that are slim... it will only happen with overly paranoid users of overly paranoid browsers. Nobody with any sense disables iframes.
no