MediaWiki:Wikiminiatlas.js: Difference between revisions
JSON does not exist in IE8 and below!
(setting an opacity value screws up the display of the icon in IE completely :-() |
(JSON does not exist in IE8 and below!) |
||
Line 278: | Line 278: | ||
clist.lonright = coord_list[ineg].lon; | clist.lonright = coord_list[ineg].lon; | ||
} | } | ||
mes.postMessage( JSON.stringify(clist), document.location.protocol+'//toolserver.org' ); | if(JSON) { | ||
mes.postMessage( JSON.stringify(clist), document.location.protocol+'//toolserver.org' ); | |||
if( kml !== null ) { | |||
mes.postMessage( JSON.stringify(kml), document.location.protocol+'//toolserver.org' ); | |||
} | |||
} | } | ||
case 'unhighlight' : | case 'unhighlight' : | ||
Line 510: | Line 512: | ||
// already got a request message | // already got a request message | ||
if( mes !== null && kml.ways.length > 0) { | if( mes !== null && kml.ways.length > 0 && JSON ) { | ||
mes.postMessage( JSON.stringify(kml), document.location.protocol+'//toolserver.org' ); | mes.postMessage( JSON.stringify(kml), document.location.protocol+'//toolserver.org' ); | ||
} | } |