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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    -27° 28' 22" , 153° 1' 22"
    Posts
    135
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Custom page with response.redirect

    When I use response.redirect, I would like to know whether there is a way I can customise the page I am redirecting to so that there is no address bar etc..

    Response.Redirect ("window.open('" + username + ".htm"','','width=500,height=500')")

    Like when I use this:

    Code:
    onclick="window.open('http://www.site.com','','width=500,height=500,scrollbars,resizable')"
    "Computers are considered female - As soon as you make a commitment to one, you find yourself spending half your paycheck on accessories for it."

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Refer here:

    Popup

    This is basically what your asking right?
    OracleGuy

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    -27° 28' 22" , 153° 1' 22"
    Posts
    135
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi peeps,

    Is there a particular reason as to why when the pop-up window opens the content in the previous window disappears and you need to refresh the window to get the content back.

    Any ideas?
    "Computers are considered female - As soon as you make a commitment to one, you find yourself spending half your paycheck on accessories for it."

  • #4
    Regular Coder
    Join Date
    Sep 2002
    Location
    Bugaha, NE
    Posts
    330
    Thanks
    0
    Thanked 0 Times in 0 Posts
    My guess would be because you're redirecting to the new window.

    The old window is not supposed to be active--the one you're now being directed to is the active one.

    why not just ?
    <%

    <script>

    ("window.open('" + username
    + ".htm"','','width=500,height=500')"

    </script>

    %>

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'd definitely take a look at Allida77's sample code in the thread that oracleguy posted.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

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