...

View Full Version : targetframename.location.replace



Droefie
01-26-2006, 10:20 AM
With client-side code, such as top.<target>.location.href= ...
ASP is on the server and does not "see" frames.

Instead of response.redirect, use code like this:

<%
url = "http://domain.com/"
response.write("<script>" & vbCrLf)
response.write("targetframename.location.replace('" & url & "');" & vbCrLf)
response.write("</script>")
%>
Or this:
<%
url = "http://domain.com/"
response.write("<script>" & vbCrLf)
response.write("targetframename.location.href='" & url & "';" & vbCrLf)
response.write("</script>")
%>

Only the name of my frame = body.htm the target = "rechts".

I Used the location replace but it's not working.

can anyone help?

droefie:)

Kor
01-26-2006, 02:28 PM
the name of a frame should be exactly the name. I mean name="framename"

now try using

top.frames['framename'].location.replace()
or
top.frames['framename'].location.href=''

mentalhorse
01-26-2006, 02:32 PM
crap.. just clicked fast reply on the wrong forum. I gota start looking at my IE tabs I click.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum