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 12 of 12
  1. #1
    New Coder
    Join Date
    Nov 2002
    Location
    Florida, USA
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can I launch new browser window from redirect tag?

    Is it possible to get a new browser window to be launched from a redirect tag? I have one javascript popup for my AutoFollowup script by Jason Silvers.

    <input type="hidden" name="redirect" value="http://www.cyberserious.com/download.htm">

    What I would like to accomplish is for this page to load in a new browser window instead of the same window.

    using ..."http://www.cyberserious.com/download.htm" target="new"> doesn't work. The browser simply ignores this command and loads to the same window.

    Fred

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    In your form tag:

    <form .......... target="_blank">
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    New Coder
    Join Date
    Nov 2002
    Location
    Florida, USA
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    target="_blank"> didn't work. It still loads to the same popup window.

    Fred

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    There must be something else wrong with your code then. Putting target="_blank" inside your form tag will return the results into a new window.

    Post your form code.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #5
    New Coder
    Join Date
    Nov 2002
    Location
    Florida, USA
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <form action="http://www.cyberserious.com/cgi-bin/auto_followup.pl" method="post" align="left">
    <div align="center">
    <tr>
    <td align="middle">
    <div align="center">
    <center>
    <div align="center">
    <input type="hidden" name="product" value="netdet">
    <input type="hidden" name="remind" value="ON">
    <input type="hidden" name="newsletter" value="ON">
    <input type="hidden" name="redirect" value="http://www.cyberserious.com/download.htm target="_blank">
    <table cellspacing="0" border=1 cellpadding="12" width="277">
    <tr>
    <td align="middle">
    <div align="center">
    <center>
    <table cellspacing="0" cellpadding="0" border="0" width="241">
    <tr align="middle">
    <td valign="center" noWrap align="right">
    <div align="left"><font face="Arial, Helvetica, sans-serif"><b>Your
    Name: </b></font></div>
    </td>
    <td align="left">
    <div align="center">
    <input name="name" size="25">
    </div>
    </td>
    </tr>
    <tr align="middle">
    <td valign="center" noWrap align="right">
    <div align="left"><font face="Arial, Helvetica, sans-serif"><b>Your
    Email: </b></font></div>
    </td>
    <td align="left">
    <div align="center">
    <input name="email" size="25">
    </div>
    </td>
    </tr>
    <tr align="middle">
    <td valign="center" align="middle"colspan="2">
    <div align="center">
    <center>
    <p><font size="2"><br>
    <input type="submit" value="Submit" style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt" name="submit">
    <br>
    </font>
    </center>
    </div>
    </td>
    </tr>
    </table>
    </center>
    </div>
    </td>
    </tr>
    </table>
    </div>
    </center>
    </div>
    </td>
    </tr>
    </div>
    </form>
    Last edited by Fred; 01-16-2003 at 09:23 PM.

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok, instead of putting target blank in that hidden field take it right out of their and put it in the actual <form> tag, like this:

    <form action="http://www.cyberserious.com/cgi-bin/auto_followup.pl" method="post" align="left" target="_blank">

    redhead

  • #7
    New Coder
    Join Date
    Nov 2002
    Location
    Florida, USA
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Redhead,
    I just tried your suggestion and it works!

    Thank you,
    Fred

  • #8
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    I could have sworn that's what I said earlier.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #9
    New Coder
    Join Date
    Nov 2002
    Location
    Florida, USA
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes now that I realize it, that's what you said earlier. I was confused by

    "<form .......... target="_blank">"

    <form action="http://www.cyberserious.com/cgi-bin/auto_followup.pl" method="post" align="left" target="_blank">

    I was putting it in the wrong place earlier.

    Fred

  • #10
    New Coder
    Join Date
    Nov 2002
    Location
    Florida, USA
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question New question regarding redirect tags

    Spookster,
    What is the piece of html code that automatically clears out the form fields on a page, such a name & email address, immediately after the visitor has filled them in then clicks SUBMIT?
    Fred

    <form action="http://www.cyberserious.com/cgi-bin/auto_followup.pl" method="post" align="left" onclick=clicked(); target="_blank">
    <div align="center">
    <input type="hidden" name="product" value="netdet">
    <input type="hidden" name="remind" value="ON">
    <input type="hidden" name="newsletter" value="ON">
    <input type="hidden" name="redirect" value="http://www.netdetectivesoftware.com/download.htm">
    <table cellSpacing="0" border=1 cellPadding="12" width="277">
    <tr>
    <td align="middle">
    <div align="center">
    <center>
    <table cellSpacing="0" cellPadding="0" border="0" width="241">
    <tr align="middle">
    <td vAlign="center" noWrap align="right">
    <div align="left"><font face="Arial, Helvetica, sans-serif"><b>Your
    Name: </b></font></div>
    </td>
    <td align="left">
    <input name="name" size="20">
    </td>
    </tr>
    <tr align="middle">
    <td vAlign="center" noWrap align="right">
    <div align="left"><font face="Arial, Helvetica, sans-serif"><b>Your
    Email: </b></font></div>
    </td>
    <td align="left">
    <input name="email" size="20">
    </td>
    </tr>
    <tr align="middle">
    <td vAlign="center" align="middle"colSpan="2">
    <div align="center">
    <center>
    <p><font size="2"><br>
    <input type="submit" value="Submit" style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt">
    <br>
    </font>
    </center>
    </div>
    </td>
    </tr>
    </table>
    </center>
    </div>
    </td>
    </tr>
    </table>
    </div>
    </form>


    --------------------------------------
    http://www.cyberserious.com

  • #11
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    javascript can only make that happen before the form has been sent, 'coz after its been sent your on a differant page... and if you made them blank before it sends the form, there will be no data in the form...
    redhead

  • #12
    New Coder
    Join Date
    Nov 2002
    Location
    Florida, USA
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I guess then, it's not a problem that the visitor's information remains in the boxes. I figured some people might think their submission didn't go through, if they still see their name and email in the boxes, and might resubmit by mistake.

    Thank you,
    Fred



    ----------------------------------------------------
    http://www.internet-marketing-ideas.com


  •  

    Posting Permissions

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