PDA

View Full Version : Why does this happen?



Mickword
29-12-2009, 06:01 PM
Hey Guys! Right, I was wondering why when I use iframes it makes new pages popup in ie and firefox. If anyone can't help I'll just do javascript or something.

Invent
29-12-2009, 06:07 PM
Hey Guys! Right, I was wondering why when I use iframes it makes new pages popup in ie and firefox. If anyone can't help I'll just do javascript or something.

Do you mean links IN the IFrame open in a new page OR do you mean links that should be opening in the IFrame open in a new page? If it's the former try setting the links "target" attribute to "self" or if it's the latter then make sure the links "target" attribute is set to the IFrame's name.

Fehm
29-12-2009, 06:08 PM
use php includes, soo much simpler :')

Mickword
29-12-2009, 06:08 PM
Yeah, the links should like to the iframe, I have done the target but it doesnt work?

Invent
29-12-2009, 06:09 PM
You must have done it wrong, can you post your code?

Mickword
29-12-2009, 06:13 PM
CBA lol. Ill just do what apps said. :).

Mickword
29-12-2009, 06:25 PM
Soz for double post, but I am now using Dynamic Ajax Content and it isnt working aswell :S.

Yonder
29-12-2009, 10:58 PM
Well sorry but we cant help you if you "cba" to post your code, it is hard to guess what we are trying to fix.

LMS16
30-12-2009, 03:23 AM
<iframe scr="lol.htm" id="iframe" name="content" > </iframe>

the tarfet name wud be "content"

:)

Lew.

Blob
30-12-2009, 01:28 PM
<iframe scr="lol.htm" id="iframe" name="content" > </iframe>

the tarfet name wud be "content"

:)

Lew.

Erm... No.


<iframe src="page.php" class="iframe class" style="border: 0; width: 100px; height: 100px;" name="iframe">
<p>Sorry, your browser does not support iframes.</p>
</iframe>

To link to the iframe


<a href="page.php" target="iframe">lol</a>

target in the link = name of the iframe.

Want to hide these adverts? Register an account for free!