Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically setting the page of a frame 3

Status
Not open for further replies.

JSMITH242B

Programmer
Mar 7, 2003
352
GB
Hi Group,
I have 2 frames in my ASP Page. The top frame for the search screen and the bottom frame for the results. The bottom frame I've called blank.htm.
On the top screen I have a button which when clicked clears the search criteria from the text boxes. However if results were returned from a previous search, these are still displayed in the bottom frame.

How do I 'reset' the bottom frame?

TIA
 
My button is declared as:
<input type="button" name="btnClear" value="Clear"
onclick="btnClear_onClick()">


function btnClear_onClick()
{
document.frmsearch.surname.value = "" ;
document.frmsearch.firstname.value = "";
document.frmsearch.number.value = "" ;
document.frmsearch.addr1.value = "" ;
document.frmsearch.postcode.value = "";


}
frmsearch is the frame the button is on.

TIA
 
Hi Dan,
That didn't work.

<html>
<head>
</head>
<frameset rows="55%,*">
<frame name="searchtop" src="kidsearchform.asp?<%=Request.QueryString%>" scrolling="NO">
<frame name="searchbottom" src="blank.htm" scrolling="auto">
</frameset>
</html>

The above is how the page with the frames are called. The above file is called searchframe.asp

It is when I am in the frame 'searchtop' and click the button that I want 'searchbottom' to be refreshed with blank.htm.

Regards
 
Yes. I used:
parent.frames['searchbottom'].src = 'blank.htm'
I even tried:
parent.parent.frames['searchbottom'].src = 'blank.htm'
and with double quotes around each item

Thanks for your help..
 
Thanks cLFlaVA.
Your solution worked.

Thanks Dan for pointing me in the right direction!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top