<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<div class="ecxSection1"><p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">&nbsp;AND the position of the caret,</span></p><p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"><br></span></p><p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">If you have the TF ID, can't you just get a charcount on button click?</span></p>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">Or get the text, concatenate the special and reset it?</span></p><p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> <br></span></p>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">&nbsp;</span></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p class="ecxMsoNormal" style="margin-left: 36pt;"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> Friday, January 08, 2010 3:51 PM<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> RE: [Xerte] Inserting Special Characters</span></p>

</div>

</div>

<p class="ecxMsoNormal" style="margin-left: 36pt;">&nbsp;</p>

<p class="ecxMsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Maybe
a global func that holds the tf id of the last tf with focus?<br>
<br>
&lt;pseudo&gt;<br>
if object with focus=TF {<br>
last_active = TF ID<br>
}<br>
&lt;/pseudo&gt;<br>
<br>
<br>
&gt; Date: Fri, 8 Jan 2010 15:27:12 +0000<br>
&gt; From: Julian.Tenney@nottingham.ac.uk<br>
&gt; To: xerte@lists.nottingham.ac.uk<br>
&gt; Subject: [Xerte] Inserting Special Characters<br>
&gt; <br>
&gt; I want to have anumber of buttons insert special characters into a<br>
&gt; textfield. How can I get the textfield that is currently selected when I<br>
&gt; click a button?<br>
&gt; <br>
&gt; If I debug (Selection.getFocus()) after clicking the button, I get - of<br>
&gt; course - the button, as I just selected it by clicking it. How can I<br>
&gt; know the textField that has / did have the caret in it, and the position<br>
&gt; of the caret?<br>
&gt; <br>
&gt; Previously I've done this by having the textfield update some variables<br>
&gt; onChange, but this isn't an option in this case.<br>
&gt; <br>
&gt; J<br>
&gt; _______________________________________________<br>
&gt; Xerte mailing list<br>
&gt; Xerte@lists.nottingham.ac.uk<br>
&gt; http://lists.nottingham.ac.uk/mailman/listinfo/xerte</span></p>

<div class="ecxMsoNormal" style="margin-left: 36pt; text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">

<hr size="2" width="100%" align="center">

</span></div>

<p class="ecxMsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Hotmail: Trusted email with Microsoft’s
powerful SPAM protection. <a href="http://clk.atdmt.com/GBL/go/196390706/direct/01/">Sign up
now.</a></span></p>

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