An update...

I couldn't get getComputedTextLength to work in Firefox. Using the 
code below I always get 0 where Opera and IE give me a number.

var textlen = svgdoc.getElementById
("mytextelement").getComputedTextLength();
alert("textlen = " + textlen);

Same with using text-anchor = 'end' on text1 and text-anchor 
= 'start' on text2 to lock them together. It works with Opera but 
Firefox still displays the two texts at varying distances apart 
(including overlapping) depending on the size of the screen.

Richard

--- In [email protected], "richard_smith_ons" 
<[EMAIL PROTECTED]> wrote:
>
> Thanks for the help guys.
> 
> I tried the tspan and it works prefectly in IE/ASV and Opera 9, 
but 
> alas not in Firefox 1.5. With the <a> tag in place the link does 
not 
> display at all. Removing the <a> tag makes the link text visible 
but 
> the onclick does not fire. Firefox does have known problems with 
<a> 
> and <tspan> so I think this is the correct solution, once Firefox 
> supports it :-)
> 
> I will have a fiddle with getComputedTextLength and text-anchor 
> later.
> 
> Richard
> 
> --- In [email protected], "krugerboy1971" 
> <alan.smithy@> wrote:
> >
> > Richard
> > 
> > Also, consider using text-anchor="end" on the first piece of 
> text...
> > 








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