GetSVGDocument Repeatedly Throwing "0x80020003 - JavaScript Runtime Error: Member Not Found"
The UK Office for National Statistics provide access to the data from the UK 2011 national census. One access method they provide is through a SOAP API and they give examples of ho
Solution 1:
There seem to be a number of issues here.
type=image/svg-xml
is invalid. You must use type=image/svg+xml
.
Then I think you should try doing this...
if (document.svgMap && document.svgMap.contentDocument)
svgMapDoc = document.svgMap.contentDocument;
else try {
svgMapDoc = document.svgMap.getSVGDocument();
}
catch(exception) {
alert('Neither the HTMLObjectElement nor the GetSVGDocument interface are implemented');
}
Finally the code to initialise the svgMapDoc is called from the onload event of the body, but it should be the onload of the embed that triggers it which would look somehing like this...
document.writeln('<EMBED height=100% width=100% onload="initialise()" name=svgMap src="../Boundaries/' + svgFile + '" type=image/svg+xml>')
Post a Comment for "GetSVGDocument Repeatedly Throwing "0x80020003 - JavaScript Runtime Error: Member Not Found""