Re: SVG Script in Firefox troubles

Dale Ellis <[email protected]> Mon, 12 Oct 2009 09:54:37 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.svg
Organization http://groups.google.com
Message-ID <b8271cce-8409-4b35-8d25-7c4be5256c26@o41g2000yqb.googlegroups.com>
>
> What values are you setting x1/y1/x2/y2 to?  What CSS is bound to the
> class you set?
>
> -Boris

Thanks Boris, spot on, you sent me in the right direction, i was
passing NaN values through in firefox, so drilling into it it turns
out that its because translate(0, 0) comes out as "translate(0)" when
i get the property which my code which extracts the x and y values
from couldn't deal with properly. Code made my robust and now its
workin gin IE and FF   :o)  so thanks  very much!

I do have another question, how do you make the cursor be a hand? I
used to do it like this ...
<a xlink:href="">
    <rect ................. onclick="doStuff();" />
</a>

Thats fine in IE but it causes FF the SVG to reload the page,which is
not the desired action? Do you know how to do this? I'm sure a few
years back there was no no cursor css property. Has that changed? is
there another way to get a hand? I tried preventing event propergation
on the doStuff event but that didnt work, which i didn't think it
would as its not really and event I trying to stop.

<a xlink:href="#">
    <rect ................. onclick="doStuff();" />
</a>

I did try this, and this worked in FF but this causes IE to reload the
page :o(

TIA,
Dale