sloLearner
05-18-2009, 04:59 PM
Hi - I'm just playing with an XSL transform to turn some XML into a webpage. I'm trying to load a basic Google map API function into the page, but I just can't get it to work in FireFox (although it works fine in IE). There are no error messages in FF.
<xsl:template match="/">
<html>
<head>
<script src="http://maps.google.com/maps?file=api&v=2.x&key=mykey" type="text/javascript"></script>
<script type="text/javascript">
<![CDATA[
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
map.setUIToDefault();
}
}
]]>
</script>
</head>
etc...
Just wondering if anyone can point out what I'm doing wrong here?
Thanks!
<xsl:template match="/">
<html>
<head>
<script src="http://maps.google.com/maps?file=api&v=2.x&key=mykey" type="text/javascript"></script>
<script type="text/javascript">
<![CDATA[
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
map.setUIToDefault();
}
}
]]>
</script>
</head>
etc...
Just wondering if anyone can point out what I'm doing wrong here?
Thanks!