Click to See Complete Forum and Search --> : Frameset with variable content
Archangel
01-20-2003, 12:18 PM
Hey :)
My dad wants me to get this done, so he kills me if i dont get it, :D.
I have a page with 10 Links.
These links are connected with a frameset in another new window...
i need a method to tell the frameset which HTML-Documents to display.
The Documents in the Main-frame should vary, depending on which Link i clicked on.
Is there a possibility with Javascript or HTML to transfer the information of the clicked Link, to display the right Document in the Frameset?
And if there is one, can u tell me how to use it on this concrete example?
There should be only ONE Frameset.
I would be really thankful :D
--- Archangel
<("<) **** Kirby Style **** (>")>
ShrineDesigns
01-20-2003, 05:30 PM
example:
<a href="#" onClick="winName.frameName.location.href='myPage.html'">my link</a>
replace winName with the window's name you wish to target, if it open the window that links are in use: opener instead the window's name
replace frameName with the frame's name you wish to target
Archangel
01-26-2003, 08:51 AM
Hey, thank you for replying :)
Where should be the URL of the frameset, and where the URL of the Document I want to use inside the frameset?
what do u mean with "window"? the title of the Frameset? or something like "_blank" etc.?
"if it open the window that links are in use: opener instead the window's name"
[...Can you explain this to me in more detail?]
My english isn't the best and i am not a pro, so please don't be too hard with me, if my questions seem dumb... :(
--- Archangel
<("<) <-----Kirby Style-----> (>")>
Archangel
01-29-2003, 09:54 AM
let me post an example, to make it clear...
<a href="frameset.html">Employees</a>
<a href="frameset.html">Products</a>
<a href="frameset.html">Links</a>
there are 3 Links which open a new window, with a frameset in it
for example "frameset.html"
This Frameset contains following frames:
- navigation
- main
if i click on "Employees", the browser should open a new Window, with "frameset.html" in it, and "employees.html" in the "main" frame.
If i click on "Products", the browser should open a new Window, with "frameset.html" in it, and "products.html" in the "main" frame.
the important thing is, that i only have to create ONE frameset, and can tell it which Document to display in it in a remote window.
It doesn't matter which link i clicked on, the frameset should always be the same
Isn't there some way to add some kind of id or something to the Link, that when the frameset is opened in the new Window, the Frameset modifies the content of the "main" frame?
Archangel
01-29-2003, 09:57 AM
thx Dave, :D
maybe this is what i seek, but i don't know how to use it practically.
Can you tell me exactly what to type where and in which Document?
... :D
-- Archangel
<("< ) <-----Kirby Style-----> (>")>
Happy
01-29-2003, 12:44 PM
Did you check the Dynamicdrive.com? It has lot of useful examples.
jdavia
01-30-2003, 12:56 AM
<a href="frameset.html">Employees</a>
<a href="frameset.html">Products</a>
<a href="frameset.html">Links</a>
1 You cant have three pages named the same.
2 The frameset should look more like this:
<FRAMESET " BORDER="0" COLS="15%, 85%">
<FRAME SRC="navigation.html">
<FRAME SRC="mail.html" NAME="index;">
</FRAMESET>
Your navigation page's links should look like this:
<A HREF="employees.html"TARGET=MAIN>Employees</A>