Welcome to TalkGraphics.com
Results 1 to 7 of 7
  1. #1

    Default Force Top of Page to Display

    Hi all -

    Have an odd behavior on one of my pages (http://www.jcn-associates.com/visual-foxpro.htm). Seems it's the only page where upon navigation to it it displays the bottom of the page rather than the top. Not sure if it's one of the widgets or placeholder code, but am looking for a way to force the top-of-page to display.

    TIA
    Alex E. Luyando J.C.N. Associates, L.L.C. Microsoft Visual FoxPro Database Application Design and Development | IT Project Management

  2. #2
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: Force Top of Page to Display

    I guess it is the 'The UniversalThread' iframe that forces itself into view somehow.

  3. #3

    Default Re: Force Top of Page to Display

    I could see that. I'm hoping there's a way I can force the overall page to scroll to the top once all content is loaded.

    Thanks for the reply.

  4. #4
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: Force Top of Page to Display

    You can add
    onload="window.scrollTo(0,0);"
    to your iframe, but that will result in a jump down and jump back to top.
    I have not found a way to prevent the jump down other than adding (for example)
    sandbox="allow-forms"
    but that will not work in IE9 and older and will stop the IFRAME from working correctly.

  5. #5
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    927

    Default Re: Force Top of Page to Display

    Just tried another thing and it worked for me in Firefox and IE9.
    Try applying a fast reveal animation to the placeholder.

  6. #6
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default Re: Force Top of Page to Display

    Try adding a top anchor, to the url, this should work.
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  7. #7

    Default Re: Force Top of Page to Display

    Thanks, Siran. I tried your approach and it worked.

    Thanks to all who replied as well!
    ________________
    _____/ Regards,
    ____/ al

 

 

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
  •