ASP Reload

S

SyrHoop

I am looking for some sample code. I have an ASP page that uses frames. I
will call them Frame 1, Frame 2, Frame 3. Frame 2 has a three dropdown
lists, I want to utilize Frame 3 based on what was selected in Frame 2. I
kind of understand about the client/server thing, I think all I need to do
is re-load the page somehow. Maybe onchange event with the passing of a
variable or two.

Can someone please point me in the right direction.

Thanks
 
A

Aaron [SQL Server MVP]

Not really ASP related (you'd have to do the same thing if the frames were
HTML pages).

<select onchange='parent.frames["framename"].location.reload();'>
 
R

Ray Costanzo [MVP]

Yes, the client-side onchange event would be a good choice.

default.asp:
<frameset cols="20%, 80%">
<frame src="page1.asp">
<frame src="page2.asp" name="theFrameName">
</frameset>



page1.asp:
<select
onchange="parent.theFrameName.location.href='page2.asp?x='+this.value;">
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
<option value="4">four</option>
</select>

page2.asp:
You selected <%=Request.Querystring("x")%>

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

reload frame 1
reload loop 0
Is it possible an iframe can overlapp another? 3
Asp and Frames 3
Parent Window Reload 7
Firefox reload page 1
Unwanted frame refresh/reload... 3
Need help writing an ASP page. 0

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,897
Members
47,439
Latest member
shasuze

Latest Threads

Top