Question : redirect after popup

hello
what i am trying to is when a user logs out, popup a box saying you have logged out etc then load a redirect to the login page. can someone look at my code and tell me why it just redirects and the popup never happens? if i reove the redirect popup works fine. many thanks
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
<script type="text/javascript">
			//<![CDATA[
				$.setupJMPopups({
					screenLockerBackground: "#003366",
					screenLockerOpacity: "0.7"
				});

				function openStaticPopup() {
					$.openPopupLayer({
					name: "mySecondPopup",
					width: 550,
					target: "myHiddenDiv"
				});

				}
			//]]>
		</script>
		<script type="text/javascript">
				<!--
				window.location = "/sample/index.php"
				//-->
		</script>
		<div id="myHiddenDiv">
			<div class="popup">
				<div class="popup-header">
					<h2>Logistor Logout</h2>
					<a href="javascript:;" onclick="$.closePopupLayer('mySecondPopup')" title="Close" class="close-link">Close</a>
					<br clear="all" /><br /><br />
				</div>
				<div class="popup-body">
					<code>
						<pre>
								This is just a test
						</pre>
					</code>
			</div>
		</div>
		</div>

Answer : redirect after popup

ok do this...
on your popup

window.opener.window.location = '/sample/index.php';

and use this to open popup
1:
2:
3:
4:
5:
6:
function openStaticPopup() {
	$.openPopupLayer({
	name: "mySecondPopup",
	width: 550,
	target: "myHiddenDiv",
});
Random Solutions  
 
programming4us programming4us