Closed Thread Icon

Topic awaiting preservation: Form Issue....Ugh! (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8529" title="Pages that link to Topic awaiting preservation: Form Issue....Ugh! (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Form Issue....Ugh! <span class="small">(Page 1 of 1)</span>\

 
corrino
Bipolar (III) Inmate

From: Deep Space
Insane since: Dec 2000

posted posted 02-13-2003 20:54

I've come to a bit of a roadblock. I want to submit a form and send its information via a POST......the only problem being that I want the page that I'm sending the information.....to pop up in a new window once the user has pressed submit. Thus the info posted from the form will be passed to the ASP scripts in the new win. The new window will display some of the info that was submited. The problem that I'm having with this is getting the info from the form submited into the window. Does JS allow for a new window to open like this and have values passed to it as a POST? Or am I wasting my time?


Corr

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-13-2003 21:19

Just a hunch, but have you tried specifying target="_blank" in the <form> tag, much as you would for an <a> tag?

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 02-13-2003 21:36

corrino: Have you tried:

code:
<form method="post" action="javascript: popWindow(settings);return false;">



or something like that?

___________________
Emps

FAQs: Emperor

corrino
Bipolar (III) Inmate

From: Deep Space
Insane since: Dec 2000

posted posted 02-13-2003 21:58

Slime that worked great! I was surprised that that attribute was available with a form.....I didn't even think to try that....ugh. Emp I have yet to try your way, but I'm goign to take a sec to do so. However, what I ended up doing was taking the info (removing the for entirly) and putting in a redirect page.....so the page break down would go as such.....
1)User clicks link to go to page...
2)New window opens....stored proc is called.....userinfo is put into hidden fields of a form.....
3)Once completed.....form info is submited using onLoad(form.submit)......which takes the info off my server and onto another site.

Thanks for the help guys.....all I can say is many ways to skin the programming cat.....


Corr

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 02-14-2003 05:40

Isn't target deprecated?

. . : slicePuzzle

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-14-2003 06:24

In XHTML, yes. Not in HTML 4.1, which I assume he's using.

If you're using XHTML, though, then yeah, you shouldn't be opening new windows with HTML. Heck, you shouldn't be opening new windows anyway =)

corrino
Bipolar (III) Inmate

From: Deep Space
Insane since: Dec 2000

posted posted 02-14-2003 17:30

In this case though I had to open the window......because I wanted to keep my site open and thus making sure the user was where he started on my site......while sending the user to the connecting partner site in a different win.....and a dif URL. So as much as I hate a new window......this was necessary.

Corr

« BackwardsOnwards »

Show Forum Drop Down Menu