Iframe Help

Discussion in 'HTML & Website Design' started by sahmothers.com, Mar 6, 2007.

  1. #1
    Afternoon All,

    I am in need of some help with my forums which are within an iframe. My issue is I am looking for a way to reset the iframe always to load the top of the page.

    What I mean is this

    Go to www.sniderz.com/forums
    Then click on Lost Downloads forum name.
    for me at least it loads it almost 1 3rd of the way from the top.

    I want the site to always load at the top of the page.

    How do I go about this?

    Here is my code:

    <code><P ALIGN=left><iframe style="width:880px; height:4000px;" frameborder="0" name="content" allowtransparency="true" src="/smf"></iframe></p></code>
     
    sahmothers.com, Mar 6, 2007 IP
  2. missdanni

    missdanni Guest

    Best Answers:
    0
    #2
    That code isn't your problem - the problem is where you have the text Forums.
     
    missdanni, Mar 6, 2007 IP
  3. sahmothers.com

    sahmothers.com Well-Known Member

    Messages:
    2,389
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    135
    #3

    Ummm a little more than that would help. I have no idea what you are talking about. What are text forums?
     
    sahmothers.com, Mar 6, 2007 IP
  4. missdanni

    missdanni Guest

    Best Answers:
    0
    #4
    Ok you see your forums - now right above the forum at the top left you see the word "Forums" this is where your trouble is coming from.

    Try taking that out and see if it will bring your frame up.
     
    missdanni, Mar 6, 2007 IP
  5. missdanni

    missdanni Guest

    Best Answers:
    0
    #5
    Specifically this:

    <h1>Forums</h1>
    <p></p>
     
    missdanni, Mar 6, 2007 IP
  6. adacprogramming

    adacprogramming Well-Known Member

    Messages:
    1,615
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    125
    #6
    I've battled the same problem.

    When you scroll down the page and then refresh an iframe, the iframe refreshes but the page does not. So how ever far you had scrolled down the page, you remain scrolled down, even after you have changed pages.

    I look forward to someone coming up with a solution.
     
    adacprogramming, Mar 6, 2007 IP
  7. sahmothers.com

    sahmothers.com Well-Known Member

    Messages:
    2,389
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    135
    #7

    This has nothing to do with it as I have tested this on my test box running the same install of both.
    The reason I say this is the page loads well below this.

    If it does, my testing sucks :) which is possible.

    Its either an iframe call that I need or possibly the forum software itself.
     
    sahmothers.com, Mar 6, 2007 IP
  8. matrix0978

    matrix0978 Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Iframes are the best thing to use. You could use php includes or ajax for this, but simple html iframes could be replaced in better ways
     
    matrix0978, Mar 6, 2007 IP
  9. sahmothers.com

    sahmothers.com Well-Known Member

    Messages:
    2,389
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    135
    #9
    So does anyone know what I can do to alleviate this issue or is everyone on the same page I am... lost
     
    sahmothers.com, Mar 6, 2007 IP
  10. Mad Dog 2020

    Mad Dog 2020 Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I have the same problem, when someone clicks on a link within my iframe the main page wont refresh to the top. So the user ends looking at the bottom of the page.

    I am sure that there is some sort of simple tag that I am missing that would refresh the page. But this has been a thorn in my side for a long time :)

    Is there a solution to this?

    Thanks!
     
    Mad Dog 2020, Mar 21, 2007 IP