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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp/js? - refresh just one of two frames on form submit?

Status
Not open for further replies.

hithere

Programmer
Jul 12, 2001
214
0
0
US
all righty, here we go then!

been awhile since I've done programming so (of course!) got handed a HUGE project that I'm in the very start of (and while losing hair trying to figure out table structure, I'm trying to remember how to program!).

the question:

I have a form in the top frame of a 2 frame page. when form is submitted, new page loads in lower frame and I would like to either a)onload of the new lower page, force the top frame to refresh or b)onsubmit of the top frame, force the top frame to refresh.

a little help here to get the grey cells going would be much appreciated!
mb
:)

"Where's the Ka-Boom? There's supposed to be an Earth-shattering Ka-Boom!"
Marvin the Martian
 
When a page is submitted, it either goes to another page, or the page is reloaded. If you've programmed the ASP to load the new data into the new page, that's what you get. Not sure what you want other than what normally happens.

Lee
 
Try this:

Code:
<%
Response.Write "<script language=JavaScript>" & VbCrLf
Response.Write "top.content.location.href='thepage.htm'" & VbCrLf
Response.Write "</script>"
End if
%>

parent.window.location.href will reload the entire page including the frames.

And play with these:

top.upperframe.location.href =
top.mainframe.location.href =
top.lowerframe.location.href =
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top