Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SVG error in Firefox 1.5 & 2.0 uncaught exception: NS_ERROR_FAILURE) [nsIDOMSVGLocatable.getBBox]"

283 views
Skip to first unread message

BigKat

unread,
Jan 8, 2007, 2:05:30 PM1/8/07
to
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.


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.

Cameron McCormack

unread,
Jan 8, 2007, 4:44:39 PM1/8/07
to
Hi.

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

Martin Honnen

unread,
Jan 9, 2007, 8:56:36 AM1/9/07
to
BigKat wrote:

> 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/

0 new messages