Results 1 to 9 of 9

Thread: Redirect

  1. #1
    chenko
    Guest
    How can I redirect a page to another page with out using JavaScript, I know you can do it with the meta tags some how, but I cant remember?

    Thanks
    Si

  2. #2
    kayoca
    Guest
    Do you mean this meta tag?
    Code:
    <meta http-equiv="Refresh" content="1; URL=page.htm">

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    You could also use the "Location:" HTTP header.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  4. #4
    chenko
    Guest
    Originally posted by kayoca
    Do you mean this meta tag?
    Code:
    <meta http-equiv="Refresh" content="1; URL=page.htm">
    Yep thats is cheers!

    JoshT: Whats this your on about then?

  5. #5
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Built into the HTTP protocol is the method for the server to "redirect" a web page request by telling the browser the file's correct location. The refresh meta tag requires the browser to download, process, and briefly display the page before the client is redirected.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  6. #6
    chenko
    Guest
    Cool thanks!

    A situation for ya....

    I have index.asp and home.htm

    I want index.asp to enter somedata into a database which I can do then forward to home.htm, hopefully with out the user noticing......would this be possible? which way would be best?

  7. #7
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    I just thought of another way!
    A good ole' javascript method:
    Code:
    <script language="javascript">
    function reDirect(){
    window.location.href="http://www.yoursite.com";
    }
    
    setTimeout("reDirect()", 1);
    </script>

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  8. #8
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Since you're using ASP look into Response.Redirect or Server.Transfer.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  9. #9
    New Member GunSky's Avatar
    Join Date
    Apr 2001
    Location
    Chelyabinsk, Russia
    Posts
    1
    Just

    <script language="javascript">
    <!--
    window.location.href="http://www.yoursite.com";
    //-->
    </script>

    after you do what you want
    it's a beautiful day to die

Posting Permissions

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



Click Here to Expand Forum to Full Width