Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 1st, 2004, 08:38 PM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Open new window via POST with pre-generated data?

Hi,

I am fairly new to using vbscript and ASP. I am working on an existing system in which I wish to add a button which will open a new window to a an ASP page with some client side generated POST data.

This data will not be manually input via a form but instead gathered from some environmental variables. Could someone help point me in the right direction? It needs to be vbscript and not jscript.
 
Old September 1st, 2004, 08:55 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yea right,

  <input type="button" value="Open" onclick="openWdw()">

<script language="javascript">
function openWdw(){
 var redURL="filenametoopen.asp?var1=" + formname.controlname.value + "&var2=" + ...;

var opn=window.open(redURL,"wdw","location=no,toolbar= no,menubar=no,scrollbars=yes,width=400,height=300" );
}
</script>


means, you pass the form values as a querystring to the new file to be opened. There you refer the querystring to get the value using
val1=request.querystring("querystringname")



 
Old September 1st, 2004, 09:01 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default


Oh!,

   You can do the same thing like window.open(...)

and in the next page you code your program what you want to gather and store them in hidden fields. If you want to retrieve those values to current page,

  opener.document.forms("mainformname").item("contro lname").value=document.forms("currentformname").it em("hiddenfieldname").value;








Similar Threads
Thread Thread Starter Forum Replies Last Post
post a http request/response in new window nomenu dfarkish Javascript How-To 4 August 12th, 2009 08:58 AM
pre checking of submitted data bond007 PHP How-To 1 October 15th, 2008 11:24 PM
data entry pre-fix value mateenmohd Access 5 February 17th, 2008 07:52 AM
How to post data to window opener wjenkins Javascript How-To 4 August 30th, 2003 03:49 PM
Post Preview Window Placement SerranoG Forum and Wrox.com Feedback 1 June 13th, 2003 09:26 AM





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