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.
1 1704
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).
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Jeff Thies |
last post by:
I'm (still) having trouble reading the contents of an IFRAME (IE5).
I have this:
var my_iframe = document.frames;
What I would want to do at that point is get either the
contentWindow.document or the contentDocument depending on whether this
was IE or Mozilla. (Thanks Lasse.)
I'm not finding this.
|
by: HolaGoogle |
last post by:
Hi,
Sorrryy to ask such basic question but i do need your help! Here's
what i'm trying to do:
In my parent form i'm calling a my Iframe form to get certain value,
then depending on that value enable or disable my submit button in my
parent form without using any refresh/reload or submit button in my
form.
Looks realy simple but i don't know how to get it work. actualy, i've
been able to populate listbox,text boxes in my parent with...
|
by: Andres Mas Torrecillas |
last post by:
Hi!
I'm having a little trouble with an IFRAME added in an HTML page. IFRAME has
a fixed size and it contains another HTML page, which only has some text
paragraphs and a pair of images aligned left and right (with 'style="float:
{left | right}"'). There's no tables or anything with a fixed size.
Problem is that in browsers like Opera 7, the IFRAME shows perfectly and
just vertical scroll bar is showed (that's what I want). But on...
|
by: Jim Marquardson |
last post by:
Hi,
I've struggled with this for a while now, so I'm asking for help. I
am trying to click on a link in one page, have that link open up in a
new window, and set that newly opened window's ifram to a specific
url. Here is the code I'm using:
<html>
<head>
|
by: SF RVN |
last post by:
I have searched NUMEROUS sources in an effort to find the magic
(script, styles, syntax, etc.) that will allow me to create a web page
with the following format:
|----------------------------------------------------------------|
| Discrete table used as 'banner' |
| DONE! |
|----------------------------Table 1-----------------------------|
...
| |
by: Chris Ianson |
last post by:
Hi geniuses (or is that genii, or genies)
The challenge is as above really. I have a page with an iframe in it, and
need to call a JS function in the *parent* page, *from* inside the iframe.
(It's for Google Maps, but I won't bore you with the complexities of that,
as it doesn't affect the question).
Mochas kudos to anyone able to solve this widdle.
|
by: gary.comstock |
last post by:
We have a non asp web page that contains a hyperlink which opens an
iframe. The iframe is hidden until the hyperlink is selected then
javascript toggles the visibility to 'visible'. Inside the iframe is
our aspx page which contains a gridview. I've manually set the iframe
width to larger than the gridview will ever be and have
allowtransparency set to 'true' so you really can't see the iframe,
just the gridview.
As gridview paging...
|
by: XP |
last post by:
Hello Everyone,
I was stuck with this really frustrating problem for sometime. Let me
explain what I am trying to achieve: There is a form and an inner
iframe. The form's target is set to the iframe so that when the form
is submitted, the page does not get reloaded/changed ( as the iframe
would be the one getting refreshed. The Iframe is set to have 0 width
and height to make it look invisible ).
I have a copied the html source ( at...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |