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
    New to the CF scene
    Join Date
    Oct 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    need next-previous control to control contents within an iFrame

    Help will be greatly appreciated!

    Situation:
    I have a very long page divided into many sections vertical-wise marked by bookmarks, say pageX.html#s1 to s10. I need to show the section inside an iframe (iFrame1) on the mainpage (mainpage.html). I am thinking of having 4 buttons, sitting on the mainpage, to help navigate between these sections on pageX, namely NEXT, PREVIOUS, TOP, END.

    condition of the frame, fixed width/height, no scroll, no border.

    Very new to javascript but need this code to make a page work for BIZ.

    Thank you in advance for anyone kind enough to point the right direction!

  • #2
    Regular Coder
    Join Date
    Mar 2008
    Location
    London
    Posts
    152
    Thanks
    4
    Thanked 42 Times in 42 Posts
    is it necessary to use the iframe ??

    you can achieve this even without iframe, which would be better in terms of performance as page will load only once (while in case of iframe, it will be loaded every time you click on next/prev buttons)

    Thanks & Regards,
    Niral Soni


  •  

    Posting Permissions

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