473,383 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Hello need some feedback if you're willing

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
7 1555
>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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: lawrence | last post by:
2 Questions: 1.) Can anyone think of a way to speed up this function? It is terribly slow. I plan to reduce the number of directories to 3, which I guess will speed it up in the end. 2.) This...
15
by: Peter | last post by:
I really can't understand why you still use it or why you started using it in the first place.
11
by: Kamus of Kadizhar | last post by:
I have the following function which generates MD5 hashes for files on a local and remote server. The remote server has a little applet that runs from inetd and generates an MD5 hash given the file...
11
by: Barney Norris | last post by:
Hi, The W3C validator tells me this page isn't valid HTML 4.01 Strict: http://www-student.cs.york.ac.uk/~jban100/wont_validate.html The reason it gives is I've closed meta tags with a '/'...
383
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a...
354
by: Montrose... | last post by:
After working in c# for a year, the only conclusion I can come to is that I wish I knew c. All I need is Linux, the gnu c compiler and I can do anything. Web services are just open sockets...
10
by: Steven Matthew Bennett | last post by:
I don't know about the rest of the posters, but I came to this NG to learn more about Access, not to have some idiot homophobic dipshit spewing hate with every post. You have nothing to add to...
4
by: sea | last post by:
I have a database in Access 2002 but I am unable to view code or write any modules when logged in with a limited user account using Windows XP, service pack 2 -- no problems when logging in as...
3
by: comp.lang.php | last post by:
I have a counter that evokes the "Three Strikes You're Out" rule.. if you make more than N mistakes it auto-resets to avoid flooding $_SESSION with attempt after attempt, etc. However, the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.