IFRAME trouble

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JayceeCamster
    New Member
    • Mar 2007
    • 1

    #1

    IFRAME trouble

    My page is split into 3 sections.

    1.The main layout.
    2. Content box (IFRAME)
    3. Footer w/ links (IFRAME)

    I have the javascript code to break frames on my main page, so when one of the links in the footer is clicked it breaks, so it can load the main layout and content box.

    Well on one of my content box pages, I want to go to certain spots in my page. So I use the code <a name"whatever"> whatever</a> and then when I make a link to it I use a href="whatever. html#whatever"> whatever</a>.

    Well I am assuming that my code to break out of frames is also taking effect on my content box, because when the link is clicked, it loads the whole main layout, content box, and footer in my content box IFRAME.

    Is there any way to fix this?

    I would appreciate all help.
  • xwero
    New Member
    • Feb 2007
    • 99

    #2
    Originally posted by JayceeCamster
    My page is split into 3 sections.

    1.The main layout.
    2. Content box (IFRAME)
    3. Footer w/ links (IFRAME)

    I have the javascript code to break frames on my main page, so when one of the links in the footer is clicked it breaks, so it can load the main layout and content box.

    Well on one of my content box pages, I want to go to certain spots in my page. So I use the code <a name"whatever"> whatever</a> and then when I make a link to it I use a href="whatever. html#whatever"> whatever</a>.

    Well I am assuming that my code to break out of frames is also taking effect on my content box, because when the link is clicked, it loads the whole main layout, content box, and footer in my content box IFRAME.

    Is there any way to fix this?

    I would appreciate all help.
    for inline links you only need #linkname. if you want to link from outside the page you have to do it in javascript because you have to specify the dom. It's been so long ago i used frames if forgot the code for frames :)

    It's not good practice to put your content in an iframe because bots don't register it then. Use a server side language to stitch the page parts together this will be better for your site and if you want to limit the width and height of the content because of the design you can always use css (overflow for adding scrollbars).

    Comment

    Working...