Go Back   CodingForums.com > :: Client side development > JavaScript programming

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 02-07-2004, 10:00 AM   PM User | #1
middleline
New to the CF scene

 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
middleline is an unknown quantity at this point
js window / post form

Hi all,

I'm looking to have a form which submits (via post method if possible) which opens a javascript window.

IE: They put in their details, then click the submit button and it posts the information to an serverside page where i can pick up what was requested. (i dont want the main window to relocate or load anything)

Is this at all possible?

Thanks,

MiddleLine
middleline is offline   Reply With Quote
Old 02-09-2004, 04:30 AM   PM User | #2
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
function openPopup(target){
var w = window.open('',target,'width=600,height=600');
w.focus();
}
...
<form action="..." method="post" target="mypopup" onsubmit="openPopup(this.target)">
...
<input type="submit" value="Submit">
</form>
__________________
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
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:43 AM.


Advertisement
Log in to turn off these ads.