mbennie
|
| Posted: 09/30/2002, 7:45 PM |
|
I'm stumped. I know this shouldn't be hard but I seem to be drawing a blank.
I need to open a popunder window on exit but only if certain parameters are met in the URL string and only one per day (Cookie).
I should be able to just figure it out myself but my brain is fuzzy. Any help would be greatly appreciated.
|
|
|
 |
mbennie
|
| Posted: 09/30/2002, 7:49 PM |
|
Using asp/templates
|
|
|
 |
Nicole
|
| Posted: 10/03/2002, 1:48 AM |
|
Hello,
you should use JavaScript to open pop up window and catch the value of the parameters passed through url. Or assign parameters and cookie value to some controls on the page and retrieve their vales from client side script.
Here is sample JS code that demonstrates how to open new window:
<SCRIPT LANGUAGE="JavaScript">
<!--
//*****pop up message window
function msgWin(msg)
{
xpos=screen.width/2-200
ypos=screen.height/2-75
xremote=window.open("msgwin.html", "message", "titlebar=no, toolbar=no, controls=no,width=400, height=150, status=no, resizable=no, top="+ypos+", left="+xpos);
}
//msgwin.html is a file which contains the message you want to display like please wait.. in progress..
//-->
</SCRIPT>
OR
<scrip langiage = "JavaScript">
var w = open ('', 'windowName', 'width=300,height=300,titlebar=0');
w.document.open();
w.location.href="http://www.google.com";
w.document.write('<HTML><BODY>Please wait while page is loading...<br><A HREF="javascript: window.close();">close<\/A>');
w.document.close();
</script>
|
|
|
 |
jim mccann
|
| Posted: 10/05/2002, 6:05 AM |
|
Hi,
I dont know if this is any help
I use this code to test for a condition and redirect to an html file that uses javascript with a pop up window within another asp file, in the example below, the pop window is displayed in AdminItems.asp. I hope this helps you...
THIS APPEARS AFTER MY INSERT. It could appear anywhere basically
if CONDITION <> 0 then
Response.Redirect "gooduploadmsg.html"
else
Response.Redirect "badloadmsg.html"
end if
_____________________
THIS IS MY html FILE.......
<script language = 'javascript'> alert('Your details are now inserted into our database.\n\nYou may now amend your details, or upload an image of your property to enhance it's listing.\n\nFor more information on how to upload, clink on the help link shown above.')
window.location = "AdminItems.asp";
</script>
__________________________
|
|
|
 |
peter
|
| Posted: 03/21/2003, 11:28 AM |
|
I understand the popups but do you have an example how to get the parameters for the new window? For example, the grid displays all clients. By clicking on one client, I want to popup a window with the detailed client information. I am using CCS 4 and PHP.
|
|
|
 |
|