K
Kathryn
I hope you can help as this is driving me crazy!
I have an asp which has 3 frames on it as follows:
<FRAMESET rows="50%,*,10%">
<FRAME src="rundetailstop.asp" name="rundetailstop" scrolling="no">
<FRAME src="rundetails.asp" name="rundetails" scrolling="auto">
<FRAME src="rundetailsbottom.asp" name="rundetailsbottom"
scrolling="no">
</FRAMESET>
The top frame(rundetailstop) is the heading, the middle
frame(rundetails) has the data within a form and the bottom
frame(rundetailsbottom) has some buttons on it within a form.
When a button is clicked in the bottom frame it submits the form and
goes off to a different ASP to do some processing. The problem is that
I need to take one piece of data from the middle form with me. The
middle frame has a textfield which contains a number I need to take
with me.
I'm assuming in the ASP I go off to when the button is clicked I can
only get the data from the form the request has come from (using
request.form("variablename")) and there is no way to get data from one
of the other frames on the page?
So what I tried to do is go to a client-side function within the
bottom frame when a button is pressed. This function will get the
value from the middle frame and store it in a hidden field on the
bottom frame. This is the bit I can't figure out how to do!!!! The
function call works but my attempt at getting the data out of the
other frame fails miserably! I'm trying using
parent.frames["rundetails"].document.form1.id
id is the name of the variable I need and form1 is the name of my form
within the rundetails frame.
I'm using VBScript to do this.
Where am I going wrong??
Yours hopefully!
Kathryn.
I have an asp which has 3 frames on it as follows:
<FRAMESET rows="50%,*,10%">
<FRAME src="rundetailstop.asp" name="rundetailstop" scrolling="no">
<FRAME src="rundetails.asp" name="rundetails" scrolling="auto">
<FRAME src="rundetailsbottom.asp" name="rundetailsbottom"
scrolling="no">
</FRAMESET>
The top frame(rundetailstop) is the heading, the middle
frame(rundetails) has the data within a form and the bottom
frame(rundetailsbottom) has some buttons on it within a form.
When a button is clicked in the bottom frame it submits the form and
goes off to a different ASP to do some processing. The problem is that
I need to take one piece of data from the middle form with me. The
middle frame has a textfield which contains a number I need to take
with me.
I'm assuming in the ASP I go off to when the button is clicked I can
only get the data from the form the request has come from (using
request.form("variablename")) and there is no way to get data from one
of the other frames on the page?
So what I tried to do is go to a client-side function within the
bottom frame when a button is pressed. This function will get the
value from the middle frame and store it in a hidden field on the
bottom frame. This is the bit I can't figure out how to do!!!! The
function call works but my attempt at getting the data out of the
other frame fails miserably! I'm trying using
parent.frames["rundetails"].document.form1.id
id is the name of the variable I need and form1 is the name of my form
within the rundetails frame.
I'm using VBScript to do this.
Where am I going wrong??
Yours hopefully!
Kathryn.