Results 1 to 4 of 4

Thread: Home Hot Key Script All

  1. #1
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default Home Hot Key Script All

    The Home Hot Key Script All demo appears to not work in NS7.2 or FF1.0.1, at least not here.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I figured out an inelegant solution, see this thread:
    http://www.dynamicdrive.com/forums/s...=6840#post6840
    it is for a modified version of the script, as the original is a script generator.

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Thanks for the info! I'll have to look into the problem. Confirmed that the generator doesn't work in FF 1.2, not sure about the actual script yet. Either way, I'll have to find the time to see what the problem is.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The trouble with NS7.2 and FF1.0.2 appears to be that neither of these late Mozilla based builds will recognize:

    event.which

    unless it is accessed in the tag of the event that triggers its value. Like:
    HTML Code:
    <textarea onkeypress="some_func(event.which)">
    or even:
    HTML Code:
    <body onkeypress="some_func(event.which)">
    either of the above with:
    Code:
    function some_func(arg){
    alert(arg)
    }
    but not:
    HTML Code:
    <body onkeypress="some_func()">
    with:
    Code:
    function some_func(){
    alert(event.which)
    }
    Not even this seems to work:
    Code:
    <head>
    <title>event.which test</title>
    <script type="text/JavaScript"><!--
    function some_func(arg){
    alert(arg)
    }
    document.onkeypress=some_func(event.which)
    //-->
    </script>
    </head>
    Note: these examples only for demonstration in NS7.2 and FF1.0.2, not intended to work in other browsers.

Bookmarks

Posting Permissions

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