p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

asp_websites_discuss thread: Pop up windows using ASP


Message #1 by "aspuser" <s_allamneni@h...> on Wed, 19 Mar 2003 23:31:21
Can some one tell me how to write pop-up windows using ASP. 
my requirement is : when a customer adds an item to a basket, i want to 
pop up confirmation window, saying the item has been added to the cart and 
would u like to check out? or do more shopping?. 
If user doesn't respond, the pop-up window should disappear after certain 
time interval. 
This keeps the customer in the same page instead of moving him from 
products page to shipping cart items page every time he adds an item. 
Any suggessions or sample code is welcome. 
Thanks in advance.

Message #2 by "H. Chris Spreckley" <jaguareparts@f...> on Thu, 20 Mar 2003 00:40:17 -0000
Same way as you write them for any language including simple java/HTML and
that is to cause the product to open in or as a new window. Mixing of
languages has to occur many  times in writing inorder to accomplish cross
browser usage.

Try:

...
<SCRIPT LANGUAGE="JavaScript" Type = "Text/JavaScript">
	Function showLondonTime
	(
		datThisDate = new Date();
		muWindow = Window.open("", "new_Win");
myWindow.document.open();
myWindow.document.write("This date and time in London, England:is: ");
myWindow.document.write(datThisDate.toGMTString());
myWindow.document.close();
	)
</Script>
The Local date and time according to your computer's clock is:
<Script Language"VBScript" Type="text/vbscript">
	document.write Now
	dummy = javascript:showLondonTime
</Script>
...

Kind regards
H. Chris Spreckley
hcs@J...

-----Original Message-----
From: aspuser [mailto:s_allamneni@h...]
Sent: Wednesday, March 19, 2003 11:31 PM
To: Discuss ASP Websites
Subject: [asp_websites_discuss] Pop up windows using ASP

Can some one tell me how to write pop-up windows using ASP.
my requirement is : when a customer adds an item to a basket, i want to
pop up confirmation window, saying the item has been added to the cart and
would u like to check out? or do more shopping?.
If user doesn't respond, the pop-up window should disappear after certain
time interval.
This keeps the customer in the same page instead of moving him from
products page to shipping cart items page every time he adds an item.
Any suggessions or sample code is welcome.
Thanks in advance.



  Return to Index