Jump to content

Break frame while redirecting


izdatasnakz

Recommended Posts

I'm pretty new to php (as in I suck at it) so please bear with me. I have an entire site within a frame so that the domain name always shows up, without anything after it. Within the site I have a page using the "winxp progress bar" javascript that pops up a java notification and then redirects to another page when the user clicks the "OK" button - when this happens, I'd like to break the frame so that the full URL of the new page is displayed. In HTML this would be target="_top" but I'm not sure how to do it here. Here is the code for the entire page:

 

<html> 

<head> 
<title>Searching</title> 
<script language="javascript" src="xp_progress.js"> 

/***********************************************
* WinXP Progress Bar- By Brian Gosselin- http://www.scriptasylum.com/
* Script featured on Dynamic Drive- http://www.dynamicdrive.com
* Please keep this notice intact
***********************************************/

</script> 
</head> 

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red"> 
<table border="0" width="804" align="center"> 
    <tr> 
        <td width="794" align="center"> 
	<h2 align="center"><font face="Verdana">Searching for  <?php echo $_GET['id'];?>  ...</font></h2> 
                   
<p align="center"> 
<script type="text/javascript"> 

function redirectpage(){
bar3.togglePause()
alert('<?php echo $_GET['id'];?> Found!');
window.location="lp.php"
}

var bar3= createBar(400,15,'white',1,'black','green',125,7,2,"redirectpage()");



</script> 
</p> 
	</td> 
    </tr> 
</table> 
</body> 

</html>

 

"lp.php" is the final page and the one that should break the frame. I'm not sure whether this should be done inside the redirect on this page, or if it should be done inside lp.php. lp.php is just another redirect (there used to be some more things on it but I took them all out and had too many links pointing to it to bother changing them all). This is the entire contents of lp.php:

 

<?php
   header("Location: http://www.[urlremoved].com");
?>

 

I'm assuming it would be easier to put the frame break on this page, but I really have no idea. If someone can help me with it I'd really appreciate it.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.