Log in

View Full Version : iFrame likage



wesam_jonas
11-23-2005, 03:00 PM
Hello...

Im kind of trying to get the iframe system into my head but seems that it doesn't work...

My problem is that I want to lik between two iframes, i.e. link embeded in iFrame1 opens page in iFrame2! Simply...

Or more specified, I have my index here (http://www.privat.katedral.se/~ib04jozi/TheIB-ProgrammeBiology/) and within it I have two iframes. One for the menu and one for the content. So what I want to do is that if i press a menu item, that when it opens it opens in the contents iframe and not in the same iframe.

What i thought about was something like <a href="link.html" target.... here comes the problem.... I have no idea how to target the link.html into an iframe in another external page...

I know it must be possible to do it somehow.... Jus' i don' know how.
If you know please halp, and if you don understand then check out the page itself and try the links. (try the contact one for example!)

http://www.privat.katedral.se/~ib04jozi/TheIB-ProgrammeBiology/

thnx

bluesteel522
11-23-2005, 05:16 PM
I could do it if I saw your source code, but from what you wrote and what I saw I can't just figure out the exact coding...

cadaver
11-23-2005, 10:02 PM
give your iframe a name like in this code:

<iframe name="contents" src="contents.htm"></iframe>

then when you write code in your menu.
write "contents" in target. like;
<a href="secondpage.htm" target="contents">

wesam_jonas
11-24-2005, 02:36 PM
Hello...
I tried to name them and that didn't work, since the namin is in the iFrame and not in the index page... I can give you the soucrce code though (http://www.privat.katedral.se/~ib04jozi/TheIB-ProgrammeBiology/test/test.zip) by downloading this zip file where the contents are (the files used) (it's without pictures though, but the principle is the same...

wesam_jonas
11-24-2005, 02:37 PM
I could do it if I saw your source code, but from what you wrote and what I saw I can't just figure out the exact coding... I would really appreciate it if you could.