--- In svg-developers@yahoogroups.com, Sean <[EMAIL PROTECTED]> wrote:
>
> Is there a way to click on a text element and return and index of 
where 
> in the text the click occurred? Thanks.
> 
> Sean

You can use getCharNumAtPosition(SVGpoint) 
* create SVGPoint and give x and y values from your pointer
* getCharNumAtPosition(SVGpoint) give range of char in string

This run with ASV3, ASV6 beta and Batik
Method isn't implemented in Firefox 1.5
Method give some strange result in Opera 9 beta

Michel





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

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