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

redirect to default.asp not frameset

Status
Not open for further replies.

RichS

Programmer
Apr 24, 2000
380
0
0
US
I have 2 pages plus a frameset - default, frameset(w/ top and bottom frames) and an update.asp page. The flow is in that order with a redirect back to the default.asp. In the Update.asp i have a redirect like:

Response.redirect "default.asp"



but this puts the default.asp in the bottom frame in the frameset.

I am calling the update.asp from a table in the bottom frame like:


<tr>ONCLICK=&quot;location.href='ActionUpdatePayee.asp?Val=SomeVars</tr>


How do i make it redirect to the default page without the frameset?
 
Is the Default.asp supposed to appear in the middle frame or is the frameset supposed to dissappear?
 
the frameset is supposed to disappear. the default.asp should show as a single page without any frames.
 
<a href&quot;location.href='ActionUpdatePayee.asp?Val=SomeVars&quot; target=&quot;Top&quot;>


Target=&quot;top&quot; should take you out of the frameset
 
Dont't use the onclick event of the &quot;<tr>&quot;
<tr>ONCLICK=&quot;location.href='ActionUpdatePayee.asp?Val=SomeVars</tr>
You better put a formal link:
<tr><a target='someframe' href='ActionUpdatePayee.asp?Val=SomeVars'>Some Text</a></tr>
and in the target attribute put the name of the parent of the frame.

Or if you feel fine with JavaScript, make a function whose parameter is the page you want to go. And the function will be something like that:

function goThere(myPage) {
window.parent.location.href = myPage;
}

Hope it Helps!

Remember...I'm what others may fear to be! (Vampire Lestat)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top