The svg image itelf renders correctly, but on bring up I see this error
uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIDOMSVGLocatable.getBBox]" nsresult:
"0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
https://reeb.rchland.ibm.com:10422/topology/ChartServlet?id=-2147483634&format=.svg
:: init :: line 50" data: no].
Then when I try to hover over a point, I get an error such as
svgDoc.rootElement.getCurrentTranslate is not a function.
Any help would be much appreciated, as I am fairly new to SVG. I am
picking up where another developer left off.
BigKat wrote:
> I have an application that has been running in IE with the Adobe SVG
> viewer working for well over a year. When I try running the
> application in Firefox, I am seeing the following exceptions.
...
> svgDoc.rootElement.getCurrentTranslate is not a function.
You should use the currentTranslate property instead of the
getCurrentTranslate function. See the last section of Jonathan watt's
excellent SVG Authoring Guidelines:
http://jwatt.org/svg/authoring/
--
Cameron McCormack, http://mcc.id.au/
xmpp:hey...@jabber.org ▪ ICQ 26955922 ▪ MSN c...@mcc.id.au
> The svg image itelf renders correctly, but on bring up I see this error
> uncaught exception: [Exception... "Component returned failure code:
> 0x80004005 (NS_ERROR_FAILURE) [nsIDOMSVGLocatable.getBBox]" nsresult:
> "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
> https://reeb.rchland.ibm.com:10422/topology/ChartServlet?id=-2147483634&format=.svg
> :: init :: line 50" data: no].
Unfortunately the current SVG implementation in Mozilla does not allow
you to call getBBox in the load handler of the document so that could be
a reason for the above error, that your script code in the document
calls getBBox in the load handler. You will need to delay the call to
getBBox.
--
Martin Honnen
http://JavaScript.FAQTs.com/