Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Jun 2004
    Location
    Chicago
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Netscape 7.x and onfocus() workaround?

    Hi folks,

    I have a colleague who has a nasty, messy page that uses lots of onfocus() and onblur() and select() methods. Sidestepping the issue of whether or not this is a good idea - I have to help him fix a problem. His script works everywhere but NS7.

    In particular, the form elements will not receive focus when the onfocus() method is called. No errors or warnings are thrown in the javascript console at all. It works in NS6 (and IE6 etc). Since I generally avoid this type of thing I'm not aware of a workaround for this - is there one?

    Thanks

    Tom
    Last edited by tdellaringa; 06-25-2004 at 04:12 PM.
    http://www.pixelmech.com/

    Get your FREE mini-mac! Totally legit - same people who do free iPods:
    http://www.FreeMiniMacs.com/?r=15890422

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    It's a bug...an annoying one.


    Code:
    function whatever()
    {
    ............
    ............
        var fElement = document.the_form.the_element;
        setTimeout(function(){fElement.focus();}, 50);
    }

  • #3
    New Coder
    Join Date
    Jun 2004
    Location
    Chicago
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ah, boy it felt like it was some kind of wierd timing issue and that's where I was sniffing around. Thanks a lot! Boy that is annoying.

    Do you by chance have a link to a reference for this bug? I've been googling everything with no luck on this at all!

    Thanks!

    Tom
    http://www.pixelmech.com/

    Get your FREE mini-mac! Totally legit - same people who do free iPods:
    http://www.FreeMiniMacs.com/?r=15890422

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    Not sure...but this is probably related. They've been working on this one forever.

    Have you seen the 'caret turds' yet?

  • #5
    New Coder
    Join Date
    Jun 2004
    Location
    Chicago
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ah, I think it is this one:

    http://bugzilla.mozilla.org/show_bug.cgi?id=105129

    Missed the caret turds one lol.

    Tom
    http://www.pixelmech.com/

    Get your FREE mini-mac! Totally legit - same people who do free iPods:
    http://www.FreeMiniMacs.com/?r=15890422

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    Last edited by adios; 06-25-2004 at 04:49 PM.

  • #7
    New Coder
    Join Date
    Jun 2004
    Location
    Chicago
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts
    LOL on the turds one. Thanks!
    http://www.pixelmech.com/

    Get your FREE mini-mac! Totally legit - same people who do free iPods:
    http://www.FreeMiniMacs.com/?r=15890422


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •