kimshuye / gmaps-samples

Automatically exported from code.google.com/p/gmaps-samples
0 stars 0 forks source link

makecustommap.htm compatability with Opera 9.62 #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I've taken the code generated by http://gmaps-
samples.googlecode.com/svn/trunk/spreadsheetsmapwizard/makecustommap.htm
and put it here http://www.citypubs.co.uk/citymap.html, this works in 
Explorer 7, Mozilla Firefox 1, NetScape 8 and Safari 3.1 but not in 
Opera.  My Javascript skills are weak, but I think I've pinned it down to 
this statement - 

function cm_getJSON() {
  // Retrieve the JSON feed.
  var script = document.createElement('script');
  script.setAttribute('src', 'http://spreadsheets.google.com/feeds/list'
                         + '/' + param_ssKey + '/' + param_wsId 
+ '/public/values' +
                        '?alt=json-in-script&callback=cm_loadMapJSON');
  script.setAttribute('id', 'jsonScript');
  script.setAttribute('type', 'text/javascript');
  document.documentElement.firstChild.appendChild(script);
}

(I used windows.status = "debug - got this far" to try and show what the 
Javascript was doing)

Anyone any ideas why Opera is not working correctly?

Original issue reported on code.google.com by tonynb...@googlemail.com on 27 Nov 2008 at 8:37