pixel locations of selection in RevBrowser

Brian Yennie briany at qldlearning.com
Mon Aug 10 13:43:29 EDT 2009


Richard,

FWIW, this seems to be the Javascript class you'd need:
http://www.webreference.com/js/column12/trmethods.html

HTH

> I need to know the pixel locations of the bounds of range of  
> selected text in a RevBrowser pane.
>
> I don't necessarily need the horizontal locations, but the vertical  
> locations are essential, the top and bottom of a selected range of  
> text.
>
> I've considered making a JS callback, but can't find a JS library  
> which will return those coordinates.
>
> Anyone here solve such a problem before?
>
> --
> Richard Gaskin
> Fourth World
> Revolution training and consulting: http://www.fourthworld.com
> Webzine for Rev developers: http://www.revjournal.com



More information about the use-livecode mailing list