Iframe question / Linking

P

paul dallaire

HI! I have menu system that loads pages 1.htm 2.htm, 3.htm ect...into an
iframe called Iframe001. its all well if I am on the page ( mainframe.html )
which contains the Iframe but if I am on another page like ( index.html )
how do we link to the mainframe.html then load 1.htm or 2.htm into the
Iframe001. ?

I want it so that I can use the menu from any page. so that if you are on
index.htm and you go into a submenu that it will bring up the mainframe.html
page and load the submenu option that you have clicked into the Iframe on
mainframe.html.

If there is a command line for this great.. if not I can also use JavaScript
in my menu system.

Thanks :)

Paul
 
T

Trevor L.

Hi, Paul

I use frames (not Iframes) on my site and I am able to link from one frame
to another.

I can't quite understand your query. It seems similar to what I do, but I am
not sure

For example, look at my site. In the sidebar menu one can click on "About
Us" or "Picture Album" and about.html or album.html will load into
index_main - the largest frame.

Is this what you want?

If so, look at my code, specifically
index.html
heading.html
sidebar.html
index_main.html
about.html
album.html
Basically all it needs is statements such as <a href="album.html"> with
target set to "index_main". No Javascript.

Or get back to me and I can explain more (I hope)
--
Cheers,
Trevor L., WIP (Web Interested Person)
Website: http://tandcl.homemail.com.au

paul said:
HI! I have menu system that loads pages 1.htm 2.htm, 3.htm ect...into
an iframe called Iframe001. its all well if I am on the page (
mainframe.html ) which contains the Iframe but if I am on another
page like ( index.html ) how do we link to the mainframe.html then
load 1.htm or 2.htm into the Iframe001. ?

I want it so that I can use the menu from any page. so that if you
are on index.htm and you go into a submenu that it will bring up the
mainframe.html page and load the submenu option that you have clicked
into the Iframe on mainframe.html.

If there is a command line for this great.. if not I can also use
JavaScript in my menu system.

Thanks :)

Paul


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
S

Stefan B Rusynko

See http://irt.org/script/frame.htm




| HI! I have menu system that loads pages 1.htm 2.htm, 3.htm ect...into an
| iframe called Iframe001. its all well if I am on the page ( mainframe.html )
| which contains the Iframe but if I am on another page like ( index.html )
| how do we link to the mainframe.html then load 1.htm or 2.htm into the
| Iframe001. ?
|
| I want it so that I can use the menu from any page. so that if you are on
| index.htm and you go into a submenu that it will bring up the mainframe.html
| page and load the submenu option that you have clicked into the Iframe on
| mainframe.html.
|
| If there is a command line for this great.. if not I can also use JavaScript
| in my menu system.
|
| Thanks :)
|
| Paul
|
|
 
P

paul dallaire

HI! Like I mentioned if I am on the mainframe.html page there is no problem.
it loads just like yours does. I all I have to do is call the page and load
it into the Iframe. that's no problem.

But what if I am on another page that does not contain the Iframe.?

Take a look at my page here.

http://www.webcandesign.com/Without_fl/html/Premium_Templates.html

You will see for now I have a Premium Template Menu button just hover over
it and you will see the options. NOW. on the main index page this menu does
not have the options because I don't know how to call this premium template
page and load the appropriate options into the iframe.

You see I want to be able to link to premium_template and loads any given
page into the iframe there from any page on my site.

Paul
 
T

Trevor L.

I don't understand the structure. I wish I could.
Maybe it's just Sunday afternoon (AEST) brain block :))

Mine is like this:
index.html
<frameset rows="82,*">
<noframes>
To view this document, you need a frames-compatible browser
such as Netscape 2.0 and above.
</noframes>

<frame src="heading.html" name="heading" scrolling="no" noresize="noresize">
<frameset cols="132,*">
<frame src="sidebar.html" name="sidebar" scrolling="no"
noresize="noresize">
<frame src="index_main.html" name="index_main" scrolling="yes"
noresize="noresize">
</frameset>
</frameset>

From within sidebar.html, I can open a frame in index_main.html by
<a href="album.html" target="index_main">

sidebar.html does not contain index_main. In fact both are contained by index.html

Is this similar or not? I just don't know !

I think I will have to bow out and let others answer
 
T

Thomas A. Rowe

An IFrame is different from a standard frameset page. Only the links on the page with the IFrame can
use the IFrame using basic HTML.

With server-side scripting (ASP, PHP, etc.) you should be able to do as wanted since the page would
be created on the server before being sent to the browser

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

I don't understand the structure. I wish I could.
Maybe it's just Sunday afternoon (AEST) brain block :))

Mine is like this:
index.html
<frameset rows="82,*">
<noframes>
To view this document, you need a frames-compatible browser
such as Netscape 2.0 and above.
</noframes>

<frame src="heading.html" name="heading" scrolling="no" noresize="noresize">
<frameset cols="132,*">
<frame src="sidebar.html" name="sidebar" scrolling="no"
noresize="noresize">
<frame src="index_main.html" name="index_main" scrolling="yes"
noresize="noresize">
</frameset>
</frameset>

From within sidebar.html, I can open a frame in index_main.html by
<a href="album.html" target="index_main">

sidebar.html does not contain index_main. In fact both are contained by index.html

Is this similar or not? I just don't know !

I think I will have to bow out and let others answer
 
P

paul dallaire

HI! Thanks for the response. I use some ASP. can you show an example of what
you mean?

Paul
 
P

paul dallaire

HI! Thanks for the response. Its a little different as Thomas has mentioned. I am not sure how to use Thomas idea, I guess I will have to see an example. :)

Paul
I don't understand the structure. I wish I could.
Maybe it's just Sunday afternoon (AEST) brain block :))

Mine is like this:
index.html
<frameset rows="82,*">
<noframes>
To view this document, you need a frames-compatible browser
such as Netscape 2.0 and above.
</noframes>

<frame src="heading.html" name="heading" scrolling="no" noresize="noresize">
<frameset cols="132,*">
<frame src="sidebar.html" name="sidebar" scrolling="no"
noresize="noresize">
<frame src="index_main.html" name="index_main" scrolling="yes"
noresize="noresize">
</frameset>
</frameset>

From within sidebar.html, I can open a frame in index_main.html by
<a href="album.html" target="index_main">

sidebar.html does not contain index_main. In fact both are contained by index.html

Is this similar or not? I just don't know !

I think I will have to bow out and let others answer
 
T

Thomas A. Rowe

Paul,

I do not have any examples. Notice, I said "Should be able". This would require spending some time
trying to script this function with ASP/VBScript where you would pass a query to the page which
would then populate the filename of the page to load in the IFrame. I have not had a actual need to
do anything like this yet.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top