Hello need some feedback if you're willing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • George Hester

    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:



    --
    George Hester
    _______________ _______________ ____
  • to heave chunks

    #2
    Re: Hello need some feedback if you're willing

    >Best done using Microsoft Internet Explorer but I believe Netscape may =[color=blue]
    >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/[/color]

    It worked fine for me in IE6.0

    Peace, Vm
    Yaz

    Providing complicated solutions to simple problems since 1997.

    Comment

    • Jeff North

      #3
      Re: Hello need some feedback if you're willing

      On Fri, 02 Jan 2004 04:09:04 GMT, in comp.lang.javas cript "George
      Hester" <hesterloli@hot mail.com> wrote:
      [color=blue]
      >| 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/[/color]

      function qryPassword(eve nt){
      var ctrlpasswd = document.forms['frm1'].elements['passwd'];
      var ctrlsubmit1 = document.forms['frm1'].elements['submit1'];
      event = event || window.event;
      if (ctrlpasswd.val ue = ''){
      ^------ ==
      ---------------------------------------------------------------
      jnorth@yourpant sbigpond.net.au : Remove your pants to reply
      ---------------------------------------------------------------

      Comment

      • George Hester

        #4
        Re: Hello need some feedback if you're willing

        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" <jnorth@yourpan tsbigpond.net.a u> wrote in message news:ddvbvvcnma cicgaoqkqusjvq9 ma672i6lm@4ax.c om...[color=blue]
        > On Fri, 02 Jan 2004 04:09:04 GMT, in comp.lang.javas cript "George
        > Hester" <hesterloli@hot mail.com> wrote:
        > [color=green]
        > >| 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/[/color]
        >
        > function qryPassword(eve nt){
        > var ctrlpasswd = document.forms['frm1'].elements['passwd'];
        > var ctrlsubmit1 = document.forms['frm1'].elements['submit1'];
        > event = event || window.event;
        > if (ctrlpasswd.val ue = ''){
        > ^------ ==
        > ---------------------------------------------------------------
        > jnorth@yourpant sbigpond.net.au : Remove your pants to reply
        > ---------------------------------------------------------------[/color]

        Comment

        • George Hester

          #5
          Re: Hello need some feedback if you're willing

          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" <jnorth@yourpan tsbigpond.net.a u> wrote in message news:ddvbvvcnma cicgaoqkqusjvq9 ma672i6lm@4ax.c om...[color=blue]
          > On Fri, 02 Jan 2004 04:09:04 GMT, in comp.lang.javas cript "George
          > Hester" <hesterloli@hot mail.com> wrote:
          > [color=green]
          > >| 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/[/color]
          >
          > function qryPassword(eve nt){
          > var ctrlpasswd = document.forms['frm1'].elements['passwd'];
          > var ctrlsubmit1 = document.forms['frm1'].elements['submit1'];
          > event = event || window.event;
          > if (ctrlpasswd.val ue = ''){
          > ^------ ==
          > ---------------------------------------------------------------
          > jnorth@yourpant sbigpond.net.au : Remove your pants to reply
          > ---------------------------------------------------------------[/color]

          Comment

          • Jeff North

            #6
            Re: Hello need some feedback if you're willing

            On Sat, 03 Jan 2004 02:34:10 GMT, in comp.lang.javas cript "George
            Hester" <hesterloli@hot mail.com> wrote:
            [color=blue]
            >| 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.[/color]

            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="JavaSc ript:
            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.disable d = false;
            ctrlUID.focus() ;
            ctrlpasswd.remo veAttribute('ti tle',0);
            //--- adding this line should init back to original value
            //--- thus causing the same 'problem'.
            ctrlpasswd.valu e = "";
            //--
            ctrlpasswd.disa bled = true;
            ctrlreset1.styl e.backgroundIma ge = 'url(\'reset01. gif\')';
            ctrlsubmit1.sty le.backgroundIm age = 'url(\'logon01. gif\')';
            ctrlsubmit1.rem oveAttribute('t itle',0);
            ctrlsubmit1.dis abled = true;
            ctrlreset1.remo veAttribute('ti tle',0);"

            Your OnLoad actions:
            <body onload="JavaScr ipt:
            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.disa bled = true;
            ctrlsubmit1.sty le.backgroundIm age = 'url(\'logon01. gif\')';
            ctrlsubmit1.dis abled = true;
            ctrlreset1.styl e.backgroundIma ge = 'url(\'reset01. gif\')';
            ctrlreset1.disa bled = true; ctrlUID.focus() ;">
            ---------------------------------------------------------------
            jnorth@yourpant sbigpond.net.au : Remove your pants to reply
            ---------------------------------------------------------------

            Comment

            • George Hester

              #7
              Re: Hello need some feedback if you're willing

              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" <jnorth@yourpan tsbigpond.net.a u> wrote in message news:jvrevvopge shs12tamg7ujrad d85dk3lop@4ax.c om...[color=blue]
              > On Sat, 03 Jan 2004 02:34:10 GMT, in comp.lang.javas cript "George
              > Hester" <hesterloli@hot mail.com> wrote:
              > [color=green]
              > >| 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.[/color]
              >
              > 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="JavaSc ript:
              > 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.disable d = false;
              > ctrlUID.focus() ;
              > ctrlpasswd.remo veAttribute('ti tle',0);
              > //--- adding this line should init back to original value
              > //--- thus causing the same 'problem'.
              > ctrlpasswd.valu e = "";
              > //--
              > ctrlpasswd.disa bled = true;
              > ctrlreset1.styl e.backgroundIma ge = 'url(\'reset01. gif\')';
              > ctrlsubmit1.sty le.backgroundIm age = 'url(\'logon01. gif\')';
              > ctrlsubmit1.rem oveAttribute('t itle',0);
              > ctrlsubmit1.dis abled = true;
              > ctrlreset1.remo veAttribute('ti tle',0);"
              >
              > Your OnLoad actions:
              > <body onload="JavaScr ipt:
              > 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.disa bled = true;
              > ctrlsubmit1.sty le.backgroundIm age = 'url(\'logon01. gif\')';
              > ctrlsubmit1.dis abled = true;
              > ctrlreset1.styl e.backgroundIma ge = 'url(\'reset01. gif\')';
              > ctrlreset1.disa bled = true; ctrlUID.focus() ;">
              > ---------------------------------------------------------------
              > jnorth@yourpant sbigpond.net.au : Remove your pants to reply
              > ---------------------------------------------------------------[/color]

              Comment

              • Jeff North

                #8
                Re: Hello need some feedback if you're willing

                On Sun, 04 Jan 2004 02:45:40 GMT, in comp.lang.javas cript "George
                Hester" <hesterloli@hot mail.com> wrote:
                [color=blue]
                >| 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?[/color]

                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.as p" onSubmit="retur n
                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.leng th < 2 || ctrlpasswd.leng th > 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.
                ---------------------------------------------------------------
                jnorth@yourpant sbigpond.net.au : Remove your pants to reply
                ---------------------------------------------------------------

                Comment

                Working...