there has already been a question how to implement this...<div><br></div><div><div><html></div><div><body></div><div><script type="text/javascript"></div><div>function noNumbers(e)</div><div>{</div>
<div>var keynum;</div><div>var keychar;</div><div>var numcheck;</div><div><br></div><div>if(window.event) // IE</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>{</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>keynum = e.keyCode;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>else if(e.which) // Netscape/Firefox/Opera</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>{</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>keynum = e.which;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div>keychar = String.fromCharCode(keynum);</div><div>numcheck = /\d/;</div><div>return !numcheck.test(keychar);</div><div>}</div><div></script></div>
<div><br></div><div><form></div><div>Type some text (numbers not allowed):</div><div><input type="text" onkeypress="return noNumbers(event)" /></div><div></form></div><div><br></div><div>
</body></div><div></html></div><div><br></div><div>I dont know how to create the ' if something then something' by using only smalltalk.</div><div><br></div><div>the previous example was just an example.</div>
<div>I want that when a specific key is pressed (like the escape key) , that an action is performed . Can someone give me the exact answer using Jquery.</div><div><br></div><div>I am a newbie at Seaside JQuery, HTML, Javascript, Smalltalk.</div>
<br>-- <br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><pre style="white-space:pre-wrap">This message and any attachments (the "message") are confidential, intended solely for the addressee(s), and may contain legally privileged information.
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration.
I shall not be liable for the message if altered, changed or
falsified.</pre><pre style="white-space:pre-wrap"><br></pre><pre style="white-space:pre-wrap">Sincerely yours, </pre><pre style="white-space:pre-wrap"> Apostolis Xekoukoulotakis</pre></span><br>
</div>