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 06-14-2002, 01:39 AM   PM User | #1
Jeewhizz
Regular Coder


 
Join Date: May 2002
Location: London, England
Posts: 369
Thanks: 0
Thanked 0 Times in 0 Posts
Jeewhizz is an unknown quantity at this point
Popup Form Submittal

How can i get a form to submit, but by opening a new window and displaying the results there?

i.e. something like

<form name="form" method="post" action="submit.php">

I need results to be sent to a popup window which has submit.php in it...

Got me

Jee
__________________
Jeewhizz - MySQL Moderator
http://www.sitehq.co.uk
PHP and MySQL Hosting
Jeewhizz is offline   Reply With Quote
Old 06-14-2002, 02:29 AM   PM User | #2
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
Definitely an HTML-question, because the <form> tag accepts a "target" attribute which functions identically to the one you find in <a>.

so, stick a target="_blank" in there.
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Old 06-14-2002, 02:54 AM   PM User | #3
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
jkd is right. but if you want a pop up with no toolbars and menus, you can add this:


function openPopup(){
window.open("","_popup","toolbars=0,location=0,width=500,height=500");
return true;
}


<form name="form" method="post" action="submit.php" target="_popup" onsubmit="return openPopup()">
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Old 07-03-2004, 08:24 PM   PM User | #4
bratzmania001
New Coder

 
Join Date: Jun 2004
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
bratzmania001 is an unknown quantity at this point
Internet Explorer

what's the code for just a popup window when you got to a site??? you know like popup ads that just popup out of no where!!!
bratzmania001 is offline   Reply With Quote
Old 07-03-2004, 11:42 PM   PM User | #5
circusbred
Regular Coder

 
Join Date: Apr 2004
Location: Birmingham, MI
Posts: 131
Thanks: 0
Thanked 0 Times in 0 Posts
circusbred is on a distinguished road
You should be wary of using popups unless absolutely necessary. They are annoying and because of that, a large portion of the browser public has some sort of software to block popups.

Clicking a link, a form which will open in a new window is generally okay and won't be blocked, but a popup onload, for example will be blocked.

So basically what I'm saying if you MUST use a popup, be sure to tell the user that a new window will be opened.
circusbred 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 09:14 PM.


Advertisement
Log in to turn off these ads.