Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Closing pop-up window on form submit
- From: javascript@xxxxxxxxxx (Cutter Bl)
- Subject: [Javascript] Closing pop-up window on form submit
- Date: Tue, 25 Sep 2001 08:06:36 -0400
<html><div style='background-color:'><DIV> <P>Pass the form results to the processor script in the opener window. End your processor script with a redirect to your original page. This will a) process your form and b) handle your reload.</P></DIV> <DIV></DIV> <DIV>Cutter</DIV> <DIV></DIV> <DIV><A href="http://www.falcon-knives.com/">Falcon Knives</A></DIV> <DIV> </DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV>----Original Message Follows---- <DIV></DIV>From: Jay Wright <P>I have created a small set of web pages, that will open a pop-up window with </P> <DIV></DIV>javascript, present the user a form, and then, on submit, close the pop-up <DIV></DIV>window and reload the main site page. <DIV></DIV>Below is the form code that I am using. This works, except, of course, that <DIV></DIV>the data is never POSTED to /content_upload.jsp. The window closes and the <DIV></DIV>"opener" web page is reloaded with "/main_page.jsp", but the data is never <DIV></DIV>processed. <DIV></DIV>What is the work around. Is there something I can do in the form that will <DIV></DIV>allow the post to take place before closing the page. Or is there something <DIV></DIV>I can do in the /content_upload.jsp that would do the processing and then <DIV></DIV>close the window? <DIV></DIV>Looking for a JavaScript guru to lend a little advice. Thanks, <DIV></DIV>Jay <DIV></DIV>------------------------------------------------- <DIV></DIV>PS. Yes, I do need enctype to be multipart, this form is simplified, but <DIV></DIV>many of them load images. <DIV></DIV> <FORM action=/content_upload.jsp method=post DIV <>enctype="multipart/form-data"> <DIV></DIV><INPUT name=data><BR> <DIV></DIV>input type="submit" name="submit" value="Finish" <DIV></DIV>onClick="self.close();opener.location.href='/main_page.jsp'"><BR> <DIV></DIV></FORM> <DIV></DIV> <DIV></DIV> <DIV></DIV>_______________________________________________ <DIV></DIV>Javascript mailing list <DIV></DIV>Javascript@xxxxxxxxxx <DIV></DIV>http://www.LaTech.edu/mailman/listinfo/javascript <DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html>
- Prev by Date: [Javascript] Absolute Position of BUTTON
- Next by Date: [Javascript] Closing pop-up window on form submit
- Previous by thread: [Javascript] Closing pop-up window on form submit
- Next by thread: [Javascript] Closing pop-up window on form submit
- Index(es):