Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 20th, 2004, 06:18 PM
Registered User
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kbuska
Default Thank you popup window after asp submit?

I have a html form that submits to a asp page (the asp page generates an email and shoots it off to me). It works fine but i want it to redirect to a thank you message (thankyou.html) in a certain size and have the ability to close the thankyou.html window via a close <input> button located on the page. I have tried a few different methods but nothing seems to accomplish this.

Any Ideas?

-Ken
 
Old September 20th, 2004, 06:35 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

1..Place a simple page redirect after your mail code finishes
---------
mail code finishes here
response.redirect("thankyou.html")
---------
2..To resize this window, place the following after the <head> but before your </head> tag
-------------
<script Language="JavaScript">
  var sw=window.screen.width;
  var sh=window.screen.height;
  window.resizeTo(sw*.96,sh*.96);
  window.moveTo(sw*.02, sh*.02);
</script>
-----------------
The above piece of code lets you
a..position your window (.moveTo)
b..resizes the window(.resizeTo)
NOTE: You can not remove the tool bars, address bar etc using this method
3..To let the user close the window place the following event inside a <input type="button" ...> tag or in an anchor tag wrapped aroung an image:
onClick="javascript:window.close()";


Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Popup Window using ASP.NET 2.0 Harjinder ASP.NET 2.0 Professional 3 January 31st, 2008 07:48 AM
Popup window in Asp.net kotanaresh_2003 ASP.NET 1.0 and 1.1 Basics 3 April 12th, 2007 10:23 PM
open popup window in asp.net rajn ASP.NET 1.0 and 1.1 Basics 6 August 2nd, 2006 06:23 AM
Javascript submit form to popup window don_t Javascript 1 December 23rd, 2005 07:18 AM
Javascript popup window with ASP variable johnnycorpse Classic ASP Databases 2 February 24th, 2005 01:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.