1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

focussing back on the control after displaying the message in Netscape 6+ version

Discussion in 'Firefox, Thunderbird & SeaMonkey' started by Civaram, 2002/09/27.

Thread Status:
Not open for further replies.
  1. 2002/09/27
    Civaram

    Civaram Inactive Thread Starter

    Joined:
    2002/09/27
    Messages:
    1
    Likes Received:
    0
    Hi,
    I have a problem with Netscape 6 + version browsers regarding the control focus. I was using cold fusion 4.5. and MX versions. I hava javascript routine that checks for entered value as the control looses the focus. It is working fine in I.E and netscape 4.7. It displays an error message and sets the focus back on to that control which is fine. But in Netscape 6+ versions, it displays the error message, but doesn't sets the focus back on to that control. It navigates to the next control. Is this a browser issue?? Any solution please?
    Here is example code I was using:

    <input type= "text" name= "SSN" size = "20" maxlength = "11"
    onblur= "return ValidSSN(SSN,this.value) ">

    <script type= "text/javascript" language= "Javascript ">

    function ValidSSN(field, fieldvalue)
    {

    // code here to remove all the hyphens etc.

    if (fieldvalue.length != 9)
    {
    alert( "SSN must be 9 digits ");
    field.focus();
    field.select();
    return false;
    }
    else return true;
    }

    </script>
     
    Last edited: 2002/09/27
  2. 2002/10/02
    Ramona

    Ramona Geek Member Alumni

    Joined:
    2001/12/31
    Messages:
    7,481
    Likes Received:
    2
    Welcome to the Forum, Civaram!

    Hi Civaram,

    Sorry to have kept you hanging for so long, but I have no expertise with the type of web developing that you are questioning. I was hoping that someone with this type of experience might come along. You might take a look at the DevEdge site, and perhaps you can find something there that will be helpful:

    http://devedge.netscape.com/library/release-notes/2002/netscape-7.0/

    Ramona :D
     

  3. to hide this advert.

Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.