I am using IE and have had no success with currentTranslate so I found
a way around this by changing the  viewBox instead.

For those interested I used the following.

function PanToArea(xstart, ystart)
{
        var vb = document.documentElement.getAttribute("viewBox");
        var w = staticW;
    var h = staticH;

        if(vb)
        {
                var vba = vb.split(" "); //comes out with four string array
                w = Number(vba[2]);
                h = Number(vba[3]);
                alert("w "+staticW+" h "+h);
        }
        document.documentElement.setAttributeNS(null,"viewBox",xstart+"
"+ystart+" "+w+" "+h);
}

--- In [email protected], Helder Magalhães
<[EMAIL PROTECTED]> wrote:
>
> > Well, currentTranslate is readonly, but the attributes the SVGPoint
> contains are read-write.
> 
> Oops, thanks for clarifying my somehow naive read of the spec.! :-)
> 
> 
> 
> > document.documentElement.currentTranslate.x = 10; // Succeeds, the x
> attribute on SVGPoint is writable
> 
> Must give a try at this later.
> 
> 
> 
> Regards,
> 
>  Helder Magalhães
>



------------------------------------

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to