View Single Post
  #1 (permalink)  
Old February 26th, 2007, 08:43 PM
neil.abachi07 neil.abachi07 is offline
Friend of Wrox
 
Join Date: Feb 2007
Location: Fleet, , United Kingdom.
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to neil.abachi07
Default response.redirect and frames issues

hi, have created an asp login page and have created a dynamic redirect. i wanted to redirect to the parent frame/window but this cant be done in asp.

i got given a piece of js but am unsure where to implement into my asp page.

the code is:


Dim sJavaScript
sJavaScript = "<script language=javascript>"
sJavaScript = sJavaScript & "parent.frames[n].location.href='page.asp';"
sJavaScript = sJavaScript & "</scr" & "ipt>"

response.write(sJavaScript)

im guessing that the first 5 lines goes at the top along with the other dims that i have but i dont know where the response.write goes.

i was told that the [n] is an integer value or the name of the frame.

would someone mind clarifying all this for me?

many thanks

Reply With Quote