A
Ashish
I have a svg file which is embeded in HTML file like:
<embed id="svgroomindex"
src="http://in-dev-ashishm/SVG/11roomindex.svg" width="100%"
height="100%" />
I have a javascript function to get the svg document object:
// Returns the embedded SVG Document
function getSVGDocument(embedName) {
var plugin = document.embeds[0];
return plugin.getSVGDocument();
}
which I call in onload event of body
<body onload="svgDoc=getSVGDocument('svgroomindex');">
But I get a javascript error onload of HTML file: Unspecified Error
I have tried many variants but all gives the same error. What can be
the problem (with code or anything else)?
Thanks,
Ashish
<embed id="svgroomindex"
src="http://in-dev-ashishm/SVG/11roomindex.svg" width="100%"
height="100%" />
I have a javascript function to get the svg document object:
// Returns the embedded SVG Document
function getSVGDocument(embedName) {
var plugin = document.embeds[0];
return plugin.getSVGDocument();
}
which I call in onload event of body
<body onload="svgDoc=getSVGDocument('svgroomindex');">
But I get a javascript error onload of HTML file: Unspecified Error
I have tried many variants but all gives the same error. What can be
the problem (with code or anything else)?
Thanks,
Ashish