Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-16-2003, 03:28 PM   PM User | #1
Fred
New Coder

 
Join Date: Nov 2002
Location: Florida, USA
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Fred is an unknown quantity at this point
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
Fred is offline   Reply With Quote
Old 01-16-2003, 04:39 PM   PM User | #2
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
In your form tag:

<form .......... target="_blank">
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 01-16-2003, 04:48 PM   PM User | #3
Fred
New Coder

 
Join Date: Nov 2002
Location: Florida, USA
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Fred is an unknown quantity at this point
target="_blank"> didn't work. It still loads to the same popup window.

Fred
Fred is offline   Reply With Quote
Old 01-16-2003, 06:59 PM   PM User | #4
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
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
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 01-16-2003, 09:21 PM   PM User | #5
Fred
New Coder

 
Join Date: Nov 2002
Location: Florida, USA
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Fred is an unknown quantity at this point
<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..
Fred is offline   Reply With Quote
Old 01-16-2003, 09:26 PM   PM User | #6
redhead
Regular Coder

 
Join Date: Jun 2002
Location: United Kingdom Confused: Often
Posts: 859
Thanks: 0
Thanked 0 Times in 0 Posts
redhead is an unknown quantity at this point
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
redhead is offline   Reply With Quote
Old 01-17-2003, 12:20 AM   PM User | #7
Fred
New Coder

 
Join Date: Nov 2002
Location: Florida, USA
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Fred is an unknown quantity at this point
Redhead,
I just tried your suggestion and it works!

Thank you,
Fred
Fred is offline   Reply With Quote
Old 01-17-2003, 05:45 AM   PM User | #8
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
I could have sworn that's what I said earlier.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 01-17-2003, 02:34 PM   PM User | #9
Fred
New Coder

 
Join Date: Nov 2002
Location: Florida, USA
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Fred is an unknown quantity at this point
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
Fred is offline   Reply With Quote
Old 01-18-2003, 03:18 PM   PM User | #10
Fred
New Coder

 
Join Date: Nov 2002
Location: Florida, USA
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Fred is an unknown quantity at this point
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
Fred is offline   Reply With Quote
Old 01-18-2003, 05:30 PM   PM User | #11
redhead
Regular Coder

 
Join Date: Jun 2002
Location: United Kingdom Confused: Often
Posts: 859
Thanks: 0
Thanked 0 Times in 0 Posts
redhead is an unknown quantity at this point
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
redhead is offline   Reply With Quote
Old 01-18-2003, 05:53 PM   PM User | #12
Fred
New Coder

 
Join Date: Nov 2002
Location: Florida, USA
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Fred is an unknown quantity at this point
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
Fred is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:20 AM.


Advertisement
Log in to turn off these ads.