PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > HTML/CSS/Javascript
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools
Old 9-9-04, 10:09 PM   #1
atomiksteve
Registered
 
Join Date: Sep 2004
Location: Long Island
Posts: 7
Reputation: 5
HTML Form related Question

HTML Form related Question:

Anyone know how to make this window (thanks.html) pop-up at a specific size in a blank window instead of the same window as the form?

HTML Code:
<input type="hidden" name="redirect" value="http://www.example-site.org/thanks.html">
Thanks in advance!
-Steve
atomiksteve is offline  
Old 9-10-04, 12:57 PM   #2
YvetteKuhns
 
YvetteKuhns's Avatar
 
Join Date: Feb 2003
Location: Allentown, PA USA
Posts: 15,215
Reputation: 467
Instead of using that line of code to redirect, use Javascript onSubmit to open a new window which will include your thanks.html.

http://developer.irt.org/script/786.htm
__________________
Yvette Kuhns
Power Pages Web Design
Customized Internet Advertising Solutions
YvetteKuhns is offline  
Old 9-10-04, 01:46 PM   #3
atomiksteve
Registered
 
Join Date: Sep 2004
Location: Long Island
Posts: 7
Reputation: 5
Thanks! I'll try that out.
atomiksteve is offline  
Old 9-11-04, 08:51 PM   #4
riskynil
 
Join Date: Jul 2004
Location: West Coast
Posts: 120
Reputation: 5
You can have a form post to a new, blank window by adding target="_blank" to the form tag.

I've never seen it actually documented anywhere, but that was an effect I had wanted to do, so just out of curiosity I tried it. I was actually pretty surprised that it worked!

It's probably not what you're looking for a couple of reasons:

1. You can't control the size of the new window that pops up.

2. It requires you to post the data to a different window rather than the current one.

I like it just because it means I can avoid using JavaScript--a language I'm not particularly fond of and tends to cause problems when I want to use the back button of the browser.

You can see how I used it at http://www.geocities.com/rscarpen/Lb/

I wanted to create 'syndicated content' that others could put on their website. (It's the "Letterbox Search" box in the top right corner.) The page in that little box is coming from my 'real' website at http://www.atlasquest.com/ but if someone submits a search, I wanted it to open up in a new window.

Anyhow, that's just a simplier option--if you can make it work for your purposes. It does have the two limitations I mentioned before, but in certain cases, it's much perferable to using JavaScript.

Happy trails!

-- Ryan
riskynil is offline  
Closed Thread

Thread Tools

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 Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:38 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.