Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    targetframename.location.replace

    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

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    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=''
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    New Coder mentalhorse's Avatar
    Join Date
    Jul 2005
    Location
    Duanesburg, NY
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts
    crap.. just clicked fast reply on the wrong forum. I gota start looking at my IE tabs I click.
    Why is a raven like a writing desk?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •