By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,600 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,600 IT Pros & Developers. It's quick & easy.

Hello need some feedback if you're willing

P: n/a
Best done using Microsoft Internet Explorer but I believe Netscape may do OK not sure. I have one itsy bitsy little problem here. The tabbing? No forget that I got a few gray hairs with that and gave up. This is in the Logon button. Sometimes it will show on just one key entry for the passwrd. But sometimes and often it wil take 2 key entries. Any ideas what this is and how to fix it. Well here it is:

http://www27.brinkster.com/hesterloli1/

--
George Hester
__________________________________
Jul 20 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
>Best done using Microsoft Internet Explorer but I believe Netscape may =
do OK not sure. I have one itsy bitsy little problem here. The =
tabbing? No forget that I got a few gray hairs with that and gave up. =
This is in the Logon button. Sometimes it will show on just one key =
entry for the passwrd. But sometimes and often it wil take 2 key =
entries. Any ideas what this is and how to fix it. Well here it is:

http://www27.brinkster.com/hesterloli1/


It worked fine for me in IE6.0

Peace, Vm
Yaz

Providing complicated solutions to simple problems since 1997.
Jul 20 '05 #2

P: n/a
On Fri, 02 Jan 2004 04:09:04 GMT, in comp.lang.javascript "George
Hester" <he********@hotmail.com> wrote:
| Best done using Microsoft Internet Explorer but I believe Netscape
| may do OK not sure. I have one itsy bitsy little problem here.
| The tabbing? No forget that I got a few gray hairs with that and
| gave up. This is in the Logon button. Sometimes it will show on
| just one key entry for the passwrd. But sometimes and often it wil
| take 2 key entries. Any ideas what this is and how to fix it.
| Well here it is:
|
| http://www27.brinkster.com/hesterloli1/


function qryPassword(event){
var ctrlpasswd = document.forms['frm1'].elements['passwd'];
var ctrlsubmit1 = document.forms['frm1'].elements['submit1'];
event = event || window.event;
if (ctrlpasswd.value = ''){
^------ ==
---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 20 '05 #3

P: n/a
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.

--
George Hester
__________________________________
"Jeff North" <jn****@yourpantsbigpond.net.au> wrote in message news:dd********************************@4ax.com...
On Fri, 02 Jan 2004 04:09:04 GMT, in comp.lang.javascript "George
Hester" <he********@hotmail.com> wrote:
| Best done using Microsoft Internet Explorer but I believe Netscape
| may do OK not sure. I have one itsy bitsy little problem here.
| The tabbing? No forget that I got a few gray hairs with that and
| gave up. This is in the Logon button. Sometimes it will show on
| just one key entry for the passwrd. But sometimes and often it wil
| take 2 key entries. Any ideas what this is and how to fix it.
| Well here it is:
|
| http://www27.brinkster.com/hesterloli1/


function qryPassword(event){
var ctrlpasswd = document.forms['frm1'].elements['passwd'];
var ctrlsubmit1 = document.forms['frm1'].elements['submit1'];
event = event || window.event;
if (ctrlpasswd.value = ''){
^------ ==
---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------

Jul 20 '05 #4

P: n/a
OK Jeff interesting you caught that. But guess what? That is actually never used. There is ALOT of stuff in there I don't use. I will clean it out when it is ready for prime time.

Here is the test. Go to the link I provided. Enter something in the User ID box. The Reset button will enable and come into view. Then click in the Password box and punch a normal key. Like a "p". Notice the Logon button will come into view and be enabled. Then click the Reset Button. Now you are back in the User ID box and all boxes are cleared. Do the same thing again. But notice now when you hit the "p" the Logon box does NOT come into view and is not enabled. So hit another key say a "h" this time. Then the Logon box comes into view and is enabled. Now this issue will occur for good until the page is refreshed. Or on this brinkster server since I don't think they have their caching set up correctly, you may need to close the browser and restart to be able to get the one character enable Logon box again.

--
George Hester
__________________________________
"Jeff North" <jn****@yourpantsbigpond.net.au> wrote in message news:dd********************************@4ax.com...
On Fri, 02 Jan 2004 04:09:04 GMT, in comp.lang.javascript "George
Hester" <he********@hotmail.com> wrote:
| Best done using Microsoft Internet Explorer but I believe Netscape
| may do OK not sure. I have one itsy bitsy little problem here.
| The tabbing? No forget that I got a few gray hairs with that and
| gave up. This is in the Logon button. Sometimes it will show on
| just one key entry for the passwrd. But sometimes and often it wil
| take 2 key entries. Any ideas what this is and how to fix it.
| Well here it is:
|
| http://www27.brinkster.com/hesterloli1/


function qryPassword(event){
var ctrlpasswd = document.forms['frm1'].elements['passwd'];
var ctrlsubmit1 = document.forms['frm1'].elements['submit1'];
event = event || window.event;
if (ctrlpasswd.value = ''){
^------ ==
---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------

Jul 20 '05 #5

P: n/a
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
---------------------------------------------------------------
Jul 20 '05 #6

P: n/a
No no I will put that in. It is not in there yet. The 1 key entry logon box appears after reset 2 key entry required for logon box to appear really has nothing to do with what I'll be doing at a later time to restrict less then six characters being allowed for the password. The issue exists now and I am unable to determine why. So yes it is an initialization issue. That's a given. But why after the reset button is used?

--
George Hester
__________________________________
"Jeff North" <jn****@yourpantsbigpond.net.au> wrote in message news:jv********************************@4ax.com...
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
---------------------------------------------------------------

Jul 20 '05 #7

P: n/a
On Sun, 04 Jan 2004 02:45:40 GMT, in comp.lang.javascript "George
Hester" <he********@hotmail.com> wrote:
| No no I will put that in. It is not in there yet. The 1 key entry logon box appears after reset 2 key entry required for logon box to appear really has nothing to do with what I'll be doing at a later time to restrict less then six characters being allowed for the password. The issue exists now and I am unable to determine why. So yes it is an initialization issue. That's a given. But why after the reset button is used?


Sorry, I have no idea. You might want to remove all of the unwanted
code as this could be causing the unexpected problems.

IMHO, you are making your life very difficult. I would simplify the
page as:

--------------------------------
<form name="frm1" method="post" action="none.asp" onSubmit="return
CheckValues();" >
blah
blah
blah
</form>

<SCRIPT type="text/javascript">
function CheckValues()
{
ctrlUID = document.forms['frm1'].elements['UID'];
var ctrlpasswd = document.forms['frm1'].elements['passwd'];
var vOK=true, eMsg="";

if( ctrlUID == "" )
{
eMsg = "No username entered.\n");
vOK = false;
}
if( ctrlpasswd == "" )
{
eMsg += "No password entered.\n";
vOK = false;
} else {
if( ctrlpasswd.length < 2 || ctrlpasswd.length > 6 )
{
eMsg += "Password must be 3 to 6 characters.\n";
vOK = false;
}
}
if( eMsg != "" )
alert("The following errors have been detected. Please correct
before continuing\n\n" + eMsg );
return vOK;
}
</SCRIPT>
--------------------------------
Of course you would need to do the server-side validation as well -
incase someone didn't have javascript enabled.
---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.