|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
Hello,
I have a restricted access, and 2 frames top and main.. When I check that the user as access to the menu.asp, I use this code Code:
Response.Redirect("menu.asp")
to change the content of the main frame, but I would like at the same time to chnage the content of my top frame, to make it become "topadmin.htm" I browsed the Internet, but I found nothing, Do someone knows how to do that? Thxs Ludo |
|
#2
|
|||
|
|||
|
it is better to use javascript:
like: Code:
if isAdmin then Response.Write "<script language=""JavaScript"">" & vbCrLf Response.Write "//JS-Code for Redirecting top-frame" &vbCrLf Response.Write "//JS-Code for Redirecting self-frame" &vbCrLf Response.Write "</script>" & vbCrLf end if the js code for redirecting a frame is: Code:
parent.frames[1].location.href = "foo.htm"; tom |
|
#3
|
|||
|
|||
|
Hi!
thxs for the answer but it doesn't work ![]() I might do something wrong... This is my frame definition: Code:
<frameset rows="80,*" frameborder="NO" border="0" framespacing="0"> <frame name="topFrame" scrolling="NO" noresize src="top.htm" > <frame name="mainFrame" src="index.asp"> </frameset> and the code is used in ASP: Code:
Response.Write "<script language=""JavaScript"">" & vbCrLf Response.Write "parent.topFrame.location.href = ""topadmin.htm"";" & vbCrLf Response.Write "parent.mainFrame.location.href = ""usersreport.asp"";" & vbCrLf Response.Write "</script>" & vbCrLf But it gives me this error: Quote:
And this error is located at a line earlier this redirection code... But it sure that it is this one that createsthe problem, because if I change it by Code:
Response.Redirect("usersreport.asp")
My script is then working fine... Can you see the error in the frame redirection code? Thank you Ludo |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Change a frame content while redirecting to a new page :( |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|