Thanks for the tip.  I did find a different way of doing it, I hope that 
it is compatible FF 1.5.  I implement it in my latest version of 
textBox.zip and uploaded it.  I worked a few bugs also.

Sean

pilatfr wrote:

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

-- 
"I'd rather have a bottle in front of me, than a frontal lobotomy."
-- Tom Waits 



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