Thanks for your suggestion, Christopher.
I've managed to get word selection to work in text areas on the iPad,
Android tablets and Windows tablets.
But still there is a problem.
I can't get multiline text to display properly in Internet Explorer. Text
split by new line characters '\n' is displayed as one line in IE.
The qooxdoo mobile demo exhibits the same problem:
http://demo.qooxdoo.org/devel/mobileshowcase/index.html#%2Fform
The terms of service on the Form demo are displayed as a one-line string.
On Wed, Jun 4, 2014 at 11:29 PM, Christopher Zündorf <
christopher.zuend...@1und1.de> wrote:
> I would just use a TextArea, and then get the CaretPosition with
> JavaScript directly.
>
> Greetz Christopher
>
>
> Am 04.06.2014 um 17:14 schrieb Alexei Vinidiktov <
> alexei.vinidik...@gmail.com>:
>
> > Hi,
> >
> > My mobile app needs to detect what word was tapped by the user to show
> him or her the translation of that word.
> >
> > It would be ideal if the user could tap any displayed text and the app
> would detect the tapped word, but in case it's not possible, the minimum
> requirement is to be able to detect taps on rich text displayed in labels
> or embedded html.
> >
> > I can do the second scenario in a desktop app but not in a mobile app as
> there seems to be no way to select text in mobile labels.
> >
> > Any advice would be greatly appreciated.
> >
> > --
> > Alexei Vinidiktov
> >
> ------------------------------------------------------------------------------
> > Learn Graph Databases - Download FREE O'Reilly Book
> > "Graph Databases" is the definitive new guide to graph databases and
> their
> > applications. Written by three acclaimed leaders in the field,
> > this first edition is now available. Download your free book today!
> >
> http://p.sf.net/sfu/NeoTech_______________________________________________
> > qooxdoo-devel mailing list
> > qooxdoo-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
--
Alexei Vinidiktov
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel