[Xerte] Inserting Special Characters

Dave Burnett d_b_burnett at hotmail.com
Fri Jan 8 16:07:57 GMT 2010

 AND the position of the caret,
If you have the TF ID, can't you just get a charcount on button click?

Or get the text, concatenate the special and reset it? 


xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett

Sent: Friday, January 08, 2010 3:51 PM

To: Xerte list

Subject: RE: [Xerte] Inserting Special Characters


a global func that holds the tf id of the last tf with focus?


if object with focus=TF {

last_active = TF ID



> Date: Fri, 8 Jan 2010 15:27:12 +0000

> From: Julian.Tenney at nottingham.ac.uk

> To: xerte at lists.nottingham.ac.uk

> Subject: [Xerte] Inserting Special Characters


> I want to have anumber of buttons insert special characters into a

> textfield. How can I get the textfield that is currently selected when I

> click a button?


> If I debug (Selection.getFocus()) after clicking the button, I get - of

> course - the button, as I just selected it by clicking it. How can I

> know the textField that has / did have the caret in it, and the position

> of the caret?


> Previously I've done this by having the textfield update some variables

> onChange, but this isn't an option in this case.


> J

> _______________________________________________

> Xerte mailing list

> Xerte at lists.nottingham.ac.uk

> http://lists.nottingham.ac.uk/mailman/listinfo/xerte

Hotmail: Trusted email with Microsoft’s
powerful SPAM protection. Sign up

Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100108/f281cf6c/attachment.html

More information about the Xerte mailing list