Closed (outdated)
Project:
XML Content
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2009 at 12:46 UTC
Updated:
25 Sep 2020 at 07:17 UTC
Jump to comment: Most recent
Comments
Comment #1
rupak.wahi commented<?xml version="1.0"?>
var sc = document.createElement('script'); sc.setAttribute('src', 'http://www.google.com/jsapi?key=ABQIAAAAt9dZ24lueXuymndHYfulohRWv2UtVHY4dZ2_iKAVUvBhqt63lBRhWANsy1-sL4iWUBNaW6jj9V9cfA'); sc.setAttribute('type', 'text/javascript'); document.getElementsByTagName('head')[0].appendChild(sc); var map = new GMap2(document.getElementById("map_canvas")); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(51.516282,-0.095418), 10);Comment #2
rupak.wahi commentedComment #3
dman commentedCritical indicates the status of the module - not of your own requirements.
If the javascript is giving you an error, I'm guessing you are not including the gmap library - which has to be available for stuff to work.
That snippet looks a little worrying though. It's clearly not xml.
Comment #4
avpadernoI think rupak.wahi reported the JavaScript code he is using, and that causes him the error he described. It's not clear why that declaration tag has been written.
Comment #5
avpadernoThe code seems similar to the code he attached to a different report he opened here (see the attachment). In that case, he tried to write the content of the XSLT file, but it has been filtered out from Drupal.
Comment #6
avpadernoI am closing this issue, which is for a not supported Drupal version.