<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Maybe a global func that holds the tf id of the last tf with focus?<br><br><pseudo><br>if object with focus=TF {<br>last_active = TF ID<br>}<br></pseudo><br><br><br>> Date: Fri, 8 Jan 2010 15:27:12 +0000<br>> From: Julian.Tenney@nottingham.ac.uk<br>> To: xerte@lists.nottingham.ac.uk<br>> Subject: [Xerte] Inserting Special Characters<br>> <br>> I want to have anumber of buttons insert special characters into a<br>> textfield. How can I get the textfield that is currently selected when I<br>> click a button?<br>> <br>> If I debug (Selection.getFocus()) after clicking the button, I get - of<br>> course - the button, as I just selected it by clicking it. How can I<br>> know the textField that has / did have the caret in it, and the position<br>> of the caret?<br>> <br>> Previously I've done this by having the textfield update some variables<br>> onChange, but this isn't an option in this case.<br>> <br>> J<br>> _______________________________________________<br>> Xerte mailing list<br>> Xerte@lists.nottingham.ac.uk<br>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte<br>                                            <br /><hr />Hotmail: Trusted email with Microsoft’s powerful SPAM protection. <a href='http://clk.atdmt.com/GBL/go/196390706/direct/01/' target='_new'>Sign up now.</a></body>
</html>