Problems with Response.Redirect() and Frames

S

SergioBS

Hi everybody...
I've a small problem

I copied a script to manage a Forum and I've adapted to my needs
But I've a problem I cannot solve
While logging out, the script calls page logout.asp
In the bottom of the script there is this code:
<%....
.......Response.Redirect("page1.htm")
%>

Well, everything works, but, since I use a Framed pages the behaviour is not
what I was looking for, in the sense that, this page1.htm is not loaded in
the main frame of the existing window (that's what I want), but in a new
window.

I'd like to add something like "Target", but I have no knowledge of such
programming language and I do not know how to do

Can you help me?

Thank a lot
Sergio
 
S

Stefan B Rusynko

Response.Redirect does not support targets
See http://www.aspfaq.com/show.asp?id=2052



| Hi everybody...
| I've a small problem
|
| I copied a script to manage a Forum and I've adapted to my needs
| But I've a problem I cannot solve
| While logging out, the script calls page logout.asp
| In the bottom of the script there is this code:
| <%....
| ......Response.Redirect("page1.htm")
| %>
|
| Well, everything works, but, since I use a Framed pages the behaviour is not
| what I was looking for, in the sense that, this page1.htm is not loaded in
| the main frame of the existing window (that's what I want), but in a new
| window.
|
| I'd like to add something like "Target", but I have no knowledge of such
| programming language and I do not know how to do
|
| Can you help me?
|
| Thank a lot
| Sergio
|
|
|
 
S

SergioBS

Stefan B Rusynko said:
Response.Redirect does not support targets
See http://www.aspfaq.com/show.asp?id=2052

Thank you Stefan...also for the link
Actually I found something like that (I think exactly the same) but I didn't
like it too much because it require to state a URL, therefore is not
flexible, and has to be changed every time...

....but probably a programmer can set it as a variable...

anyway Thank you!

Sergio
 
S

Stefan B Rusynko

You don't need a full URL
- you can use a page name (and path if not in the same folder) as in

url = page1.htm

It's a JavaScript function you're working with
See
http://www.jokes2000.com/html/twoframes/



|
| "Stefan B Rusynko" <[email protected]> ha scritto nel messaggio
| | > Response.Redirect does not support targets
| > See http://www.aspfaq.com/show.asp?id=2052
|
| Thank you Stefan...also for the link
| Actually I found something like that (I think exactly the same) but I didn't
| like it too much because it require to state a URL, therefore is not
| flexible, and has to be changed every time...
|
| ...but probably a programmer can set it as a variable...
|
| anyway Thank you!
|
| Sergio
|
|
 
J

Jon Spivey

Hi,
you can write out the javascript with asp, eg

<%
url = "somepage.htm"
response.write "<scri" & "pt>parent.MainFrame.location.href='" & url &
"';</script>"
%>
 

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

Top