On Sat, 03 Jan 2004 02:34:10 GMT, in comp.lang.javascript "George
Hester" <he********@hotmail.com> wrote:
| Oh cool Jeff. Thank you. Let me see if I can get this 2-key stroke issue to quit with that. Actually I won't let a 2 character password be used so all in all the issue really is itsy-bitsy. But just couldn't figure why it was happening. On my Server the Logon button will pop up on the first key entry. But if I Reset then this two character issue results.
This tells me that there is something not being initialised correctly.
Also, I don't see where you are checking for the password length
before enabling the Submit button. So I think what you are getting is
more by good luck.
Your Reset actions:
type="reset" id="reset1" name="reset1" value=" "
onclick="javascript
:
var ctrlUID = document.forms['frm1'].elements['UID'];
var ctrlpasswd = document.forms['frm1'].elements['passwd'];
var ctrlsubmit1 = document.forms['frm1'].elements['submit1'];
var ctrlreset1 = document.forms['frm1'].elements['reset1'];
var ctrlAnchor = document.all['icra'];
ctrlUID.disabled = false;
ctrlUID.focus();
ctrlpasswd.removeAttribute('title',0);
//--- adding this line should init back to original value
//--- thus causing the same 'problem'.
ctrlpasswd.value = "";
//--
ctrlpasswd.disabled = true;
ctrlreset1.style.backgroundImage = 'url(\'reset01.gif\')';
ctrlsubmit1.style.backgroundImage = 'url(\'logon01.gif\')';
ctrlsubmit1.removeAttribute('title',0);
ctrlsubmit1.disabled = true;
ctrlreset1.removeAttribute('title',0);"
Your OnLoad actions:
<body onload="javascript
:
var ctrlUID = document.forms['frm1'].elements['UID'];
var ctrlpasswd = document.forms['frm1'].elements['passwd'];
var ctrlsubmit1 = document.forms['frm1'].elements['submit1'];
var ctrlreset1 = document.forms['frm1'].elements['reset1'];
ctrlpasswd.disabled = true;
ctrlsubmit1.style.backgroundImage = 'url(\'logon01.gif\')';
ctrlsubmit1.disabled = true;
ctrlreset1.style.backgroundImage = 'url(\'reset01.gif\')';
ctrlreset1.disabled = true; ctrlUID.focus();">
---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------