Capturing and setting window "pageYOffset"

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

    #1

    Capturing and setting window "pageYOffset"


    - I'm trying to have the "header" frame capture the "main" frame's "pageYOffse t"
    - Then, after some processing the "header" frame has to reload the same "main" frame page, but I
    want it returned to the same vertical scroll position.
    - The"main" frame page then picks up the captured "pageYOffse t" stored in the "header" frame and
    restores it before the "main" frame page is written to the display. What am I doing wrong with this
    code? Can't seem to get it to work.

    "header" frame:
    ..
    ..
    ..
    var mainPageYOffset ;
    //
    mainPageYOffset = parent.main.win dow.pageYOffset .value;
    //
    parent.main.loc ation="mainPage ";


    "main" frame & same reloaded "mainPage":
    ..
    ..
    ..
    window.pageYOff set.value = parent.header.m ainPageYOffset;


    Thanks for your help.
    Don

    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
    ----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  • Don

    #2
    Re: Capturing and setting window "pageYOffs et"

    On Sun, 13 Mar 2005 22:11:01 -0700, Don <no@adr.com> wrote:
    [color=blue]
    >
    >- I'm trying to have the "header" frame capture the "main" frame's "pageYOffse t"
    >- Then, after some processing the "header" frame has to reload the same "main" frame page, but I
    >want it returned to the same vertical scroll position.
    >- The"main" frame page then picks up the captured "pageYOffse t" stored in the "header" frame and
    >restores it before the "main" frame page is written to the display. What am I doing wrong with this
    >code? Can't seem to get it to work.
    >
    >"header" frame:
    >.
    >.
    >.
    >var mainPageYOffset ;
    >//
    >mainPageYOffse t = parent.main.win dow.pageYOffset .value;
    >//
    >parent.main.lo cation="mainPag e";
    >
    >
    >"main" frame & same reloaded "mainPage":
    >.
    >.
    >.
    >window.pageYOf fset.value = parent.header.m ainPageYOffset;
    >
    >
    >Thanks for your help.
    >Don
    >
    >----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    >http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
    >----= East and West-Coast Server Farms - Total Privacy via Encryption =----[/color]
    I wonder if I should be using "scrollY" instead? I sure could use some help on this one.

    Thanks,
    Don

    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
    ----= East and West-Coast Server Farms - Total Privacy via Encryption =----

    Comment

    Working...