|
 |
asp_web_howto thread: Re passing a value to another page in a frameset
Message #1 by "Forums" <Forums@Y...> on Tue, 20 Nov 2001 10:47:30 -0000
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0014_01C171B0.C1099CE0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Ho,
I am trying to pass a total order value to the top page of a frameset.
everytime the user adds to the basket from the lowerframe, I am trying
to get the total to appear in the top frame without loosing focus on the
lower frame.
Any help greatfully received.
David
Message #2 by "TomMallard" <mallard@s...> on Tue, 20 Nov 2001 05:36:21 -0800
|
|
Updating the top frame will move the focus there, but then your client code
which did that can move the focus back to itself to put the user back to the
action they were on...
tom mallard
seattle
----- Original Message -----
From: "Forums" <Forums@Y...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Tuesday, November 20, 2001 2:47 AM
Subject: [asp_web_howto] Re passing a value to another page in a frameset
Hi Ho,
I am trying to pass a total order value to the top page of a frameset.
everytime the user adds to the basket from the lowerframe, I am trying to
get the total to appear in the top frame without loosing focus on the lower
frame.
Any help greatfully received.
David
$subst('Email.Unsub')
Message #3 by "Jason Salas" <jason@k...> on Wed, 21 Nov 2001 07:18:42 +1000
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0033_01C1725C.BFA67740
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
You could use ASP's session object to hold the amount. This will
persist the value of the order over a series of pages. In your ASP
script for the upper frame page, you could use something like the
following, having a form field in the lower frame with a NAME attribute
of "quantity":
<%
Dim OrderTotal
OrderTotal =3D Session("OrderTotal")
OrderTotal =3D Request.Form("quantity")
%>
The trick is getting the top frame to reload, displaying the updated
order value. The easiest way would probably be to include a link or
button on the bottom frame reading "update order info":
<a href=3D"upperframe.asp" target=3D"_parent">Update my order!</a>
HTH,
Jason
----- Original Message -----
From: Forums
To: ASP Web HowTo
Sent: Tuesday, November 20, 2001 8:47 PM
Subject: [asp_web_howto] Re passing a value to another page in a
frameset
Hi Ho,
I am trying to pass a total order value to the top page of a frameset.
everytime the user adds to the basket from the lowerframe, I am trying
to get the total to appear in the top frame without loosing focus on the
lower frame.
Any help greatfully received.
David
$subst('Email.Unsub')
|
|
 |