By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,625 Members | 2,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,625 IT Pros & Developers. It's quick & easy.

IFRAME trouble

P: 1
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.
Mar 2 '07 #1
Share this Question
Share on Google+
1 Reply


P: 99
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).
Mar 3 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.