Hyrum,

This is not really a struts issue and should be addressed to another, mor appropriate mailing list. But that being said, here's a potential solution that uses javascript. The code below is for trapping a carriage return but could be adapted for any keystroke.

<!-- Original: Volker Schubert ([EMAIL PROTECTED]) -->
<!-- Prevents the user from accidentally submitting the form -->
<!-- by pressing the Return or Enter key -->
function checkCR(evt)
{
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type=="text")) {return false;}


}

// sets up the current document to call checkCR when a key is pressed
document.onkeypress = checkCR;


Hyrum wrote:
I need to disable the backspace key.  I am using a Firefox Browser, and can
find very little information about how to do this.  I've searched all over
the web, but it's mostly info about IE or Netscape.  I'm getting mixed
signals.  Some say it can't be done.  Others say they've done it, but either
the directions are not available (404), or they apply to IE or NN.  Does
anyone have any ideas on this?



Hyrum Ward

Software Developer

T&R Tax Services






------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.3 - Release Date: 3/7/2005


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.3 - Release Date: 3/7/2005


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to