|
 |
asp_web_howto thread: Dynamic Child window based on entry in Parent Window
Message #1 by "Christopher Cote" <cotec@s...> on Mon, 18 Mar 2002 19:20:00
|
|
Here's my problem...
I have a dynamic form that is called from a parent page. This form will
display a specific number of text boxes depending on numbers entered into
a couple of text boxes on the parent page. How do I, in ASP, read in the
values in the text boxes in order to set up the child page? The button
the user clicks is not a submit button, so I know the data isn't posted
anywhere yet.
Chris
Message #2 by "Debreceni, David" <Debreceni.David@h...> on Mon, 18 Mar 2002 14:34:19 -0500
|
|
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1CEB3.E5E5E040
Content-Type: text/plain;
charset="iso-8859-1"
Assuming you are using javascript to pop the new window, you can pass url
parameters from the parent window grabing the values that are in the text
box currently. ie call a function from the button click and add lines that
assign the values of the text boxes to variables
var num1 = document.forms[0].textvalue1.value;
something to that sort. then just add them as query string variables to the
new window.
Dave
-----Original Message-----
From: Christopher Cote [mailto:cotec@s...]
Sent: Monday, March 18, 2002 14:20
To: ASP Web HowTo
Subject: [asp_web_howto] Dynamic Child window based on entry in Parent
Window
Here's my problem...
I have a dynamic form that is called from a parent page. This form will
display a specific number of text boxes depending on numbers entered into
a couple of text boxes on the parent page. How do I, in ASP, read in the
values in the text boxes in order to set up the child page? The button
the user clicks is not a submit button, so I know the data isn't posted
anywhere yet.
Chris
Message #3 by "Drew, Ron" <RDrew@B...> on Mon, 18 Mar 2002 14:46:13 -0500
|
|
This is a multi-part message in MIME format.
------_=_NextPart_001_01C1CEB5.8FC76E3E
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I have a directory with links to pictures. I use FSO and the following
to open windows for display. Not sure if it helps..but here it is..
<SCRIPT ID=3DclientEventHandlersJS LANGUAGE=3Djavascript>
<!--
function eventName_onchange() {
var eventurl =3D "events/";
winStats=3D'toolbar=3Dno,location=3Dno,directories=3Dno,menubar=3Dno,';
winStats+=3D'scrollbars=3Dno,width=3D300,height=3D500,resizable';
if (navigator.appName.indexOf("Microsoft")>=3D0) {
winStats+=3D',left=3D300,top=3D25';
}else{
winStats+=3D',screenX=3D300,screenY=3D25';
}
if (document.eventform.eventName.selectedIndex > 0){
self.moveTo(1,1);
eventurl =3D eventurl + document.eventform.eventName.value;
window.open(eventurl,"Events",winStats);
return false;
}
return false;
}
function MouseHandlerOver( bPtr ) {
bPtr.style.cursor =3D "hand";
}
function MouseHandlerOut( bPtr ) {
bPtr.style.cursor =3D "default";
}
//-->
</SCRIPT>
<form id=3D"eventform" method=3Dpost name=3D"eventform"
onsubmit=3D"return
eventName_onchange()">
<SELECT name=3D'eventName'>
<option value=3D"" align=3Dcenter>---Select from the drop down
list below---</option>
<% For Each file in folder.Files
if Left(file.Name,6) =3D strmy then %>
<option VALUE=3D"<%=3Dfile.Name%>"><% Response.write
file.Name & " (" & file.Size & ")"%></option>
<% End If
Next %>
</select>
<input type=3D"submit" name=3D"submit" value=3D"See Flyer"
ONMOUSEOVER=3D"MouseHandlerOver(this)"
ONMOUSEOUT=3D"MouseHandlerOut(this)"><br><br>
<input type=3D"reset" name=3D"reset" value=3D"Reset the
List"
ONMOUSEOVER=3D"MouseHandlerOver(this)"
ONMOUSEOUT=3D"MouseHandlerOut(this)">
</form>
-----Original Message-----
From: Debreceni, David [mailto:Debreceni.David@h...]
Sent: Monday, March 18, 2002 2:34 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Dynamic Child window based on entry in
Parent Window
Assuming you are using javascript to pop the new window, you can pass
url parameters from the parent window grabing the values that are in the
text box currently. ie call a function from the button click and add
lines that assign the values of the text boxes to variables
var num1 =3D document.forms[0].textvalue1.value;
something to that sort. then just add them as query string variables to
the new window.
Dave
-----Original Message-----
From: Christopher Cote [mailto:cotec@s...]
Sent: Monday, March 18, 2002 14:20
To: ASP Web HowTo
Subject: [asp_web_howto] Dynamic Child window based on entry in Parent
Window
Here's my problem...
I have a dynamic form that is called from a parent page. This form will
display a specific number of text boxes depending on numbers entered
into
a couple of text boxes on the parent page. How do I, in ASP, read in
the
values in the text boxes in order to set up the child page? The button
the user clicks is not a submit button, so I know the data isn't posted
anywhere yet.
Chris
|
|
 |