Iframe question
- Started
- Last post
- 13 Responses
- kiselka
I have an issue with iframes I done some research and can’t seem to find a solution.
Here is a simple example of my problem: http://work.kiselka.com/iframe .
When I click on link1 and link2 they work fine, they change the left iframe. But if I click on link4 and then I try to click on link1 or two they pop up in a new window. Is there a way I can link back to link one or two after I have click on link3? I hope this makes sense.
- Blofeldt0
maybe you're getting your target parent or base mixed up somewhere. Only had quick look
- randomBboy0
when you are loading link 4 in you are taking away the target frames of link 1 & link 2
- kiselka0
randomBboy is there any i can link find that I have taking away my target and link back to it?
- mg330
the link 3 page should target itself, I think. I'm looking at your code, and the only think I can think of is that the link "Link 4" needs to target parent, not main.
Oh, wait. Do you have two iframes inside the "main" frame?
You need to seperate them.
That scrollbar on the bottom that is covering the full 750 width shouldn't be there, if you're trying to make it two seperate things.
- mg330
Maybe this will help:
http://www.webclass.ru/eng/Tutor…
- dippy0
"and the only think I can think of is that the link "Link 4" needs to target parent, not main."
True dat. You're making things harder on yourself by removing your two nested iframes (mainside and work) when you click Link 4.
- randomBboy0
he could put an iframe within a div with it's visibilty set to hidden then when he clicks link4, it sets it to visible and vice versa when he clicks link 1 and link 2.. but that is way to complicated to explain through this little box
- mg330
best thing I learned about iframes recently is that you can put them in a table cell.
Just didn't know it before, and was mad that I couldn't center a whole site page in the browser because the iframe was not in a table.
I love those little things.
- moth0
i think php could be your friend here.
- mg330
pcp too.
- moth0
collect each iframes value from the link...
- randomBboy0
it's not prertty but it works
- Moo0
you need to target the orginal iframe name