Magnus:
Just change extension to .html (should be maps.html)
Thanks, Radina

On May 5, 2:56 am, Magnus <[email protected]> wrote:
> Hi,
> I used the source code from this 
> example:http://code.google.com/apis/maps/documentation/javascript/examples/ma...
> added the CDATA like this to get around an error
>   // <![CDATA[
>      script.src =
> "http://maps.google.com/maps/api/js?sensor=false&callback=initialize";;
>   // ]]>
> but now I get the following eroor in Firefox:
> This XML file does not appear to have any style information associated
> with it. The document tree is shown below.,
> And in Chrome 11 I just get this as an output on the screen(firefox
> gives it an XML structure).
> html { height: 100% } body { height: 100%; margin: 0px; padding: 0px }
> #map_canvas { height: 500px;width: 400px } Google Maps JavaScript API v3
> Example: Map Simple function initialize() { var myLatlng = new
> google.maps.LatLng(-34.397, 150.644); var myOptions = { zoom: 8, center:
> myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new
> google.maps.Map(document.getElementById("map_canvas"), myOptions); }
> function loadScript() { var script = document.createElement("script");
> script.type = "text/javascript"; // document.body.appendChild(script); }
> window.onload = loadScript;
>
> Ive been trying to get Google Maps to my page for two days now but all
> I've managed is an embedded picture, please help!
>
> Here is my page:http://people.dsv.su.se/~mk2/ip3/6/maps.xhtml
> <http://people.dsv.su.se/%7Emk2/ip3/6/maps.xhtml>
>
> Best Regards
> Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to