Forum Moderators: coopster

Message Too Old, No Replies

Opening in a new window from a iframe....

         

GamerShock

6:16 pm on Jul 12, 2003 (gmt 0)

10+ Year Member



Hi, I was wondering if someone could help me on this, I wanna put <?php
chdir("/home/virtual/site32/fst/var/www/html/");
require('http://blahsomethingblahblah.com/global.php');
if ($bbuserinfo['userid']==0) {
header("Location: [blahsomethingblahblah.com...]
}
?> into an iframe, what happens is if there a guest it will redirect them to [blahsomethingblahblah.com...] but i need it to open in the current windown and not the iframe i need it to be _top. So my question is how would i put _top into that code for it to work properly?

Thanks,

jatar_k

9:52 pm on Jul 14, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld GameShock,

I looked at this page
[ca.php.net...]
to see if they mentioned frames. It does in the user comments and it seems that the way to go is with a frame exploder or some other type of js to get it into the _top.

Search the page for "frame" and you come up with the comments about frames.

Shadi

10:54 pm on Jul 14, 2003 (gmt 0)

10+ Year Member




<HTML>
<BODY onload=newWindow()>
<script language="JavaScript">
function newWindow() {
window.open('location','_blank','menubar=yes,scrollbars=yes,resizable=yes');
}
</script>
</BODY>
</HTML>

if HTML above for your iframe it will open a new window where 'location' is what you want to be opening.