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 2 of 2
  1. #1
    skl
    skl is offline
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Update window.name when the frame window is scrolled.

    index.htm:

    <frameset rows="*,*">
    <frame name="topFrame" src=file1.htm scrolling="auto">
    <frame name="bottomFrame" src=file2.htm>
    </frameset>
    ----------------------------------------------------------------------
    both file1.htm and file2.htm include the "J2Frames.js":

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>

    <head>
    ...
    <script type="text/javascript" language="JavaScript" SRC="J2Frames.js">
    </script>

    </head>

    ----------------------------------------------------------------------
    if (window.name == "TopLeftFrame") {
    ...
    }
    else if (window.name == "BottomRightFrame") {
    ...
    }
    ----------------------------------------------------------------------
    The problem I am having is when I click on the vertical scroll bar to scroll the page content up/down, the window.name is not changed to the name
    of the active frame that I was scrolling. I have to click inside the frame then it will update the window.name. Is it an easy way of updating the wndow.name when the frame window is scrolled?

    Thanks,
    skl

  • #2
    Regular Coder
    Join Date
    Aug 2005
    Location
    Toronto, ON, Canada
    Posts
    231
    Thanks
    0
    Thanked 0 Times in 0 Posts
    onscroll event handler
    rm -f /


  •  

    Posting Permissions

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