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 (Tom Mallard)
- Subject: [Javascript] Closing pop-up window on form submit
- Date: Tue, 25 Sep 2001 05:35:41 -0700
The page which is submitted to can reply to the child and use the onload event of the body tag to close it, or it can refresh the main page and pass a value to close the child window... What's your code that submits, then closes the child window? Sounds like you close the window before submitting. tom mallard seattle ----- Original Message ----- From: "Jay Wright" <jwright@xxxxxxxx> To: <javascript@xxxxxxxxxx> Sent: Monday, September 24, 2001 3:56 PM Subject: [Javascript] Closing pop-up window on form submit > > I have created a small set of web pages, that will open a pop-up window with > javascript, present the user a form, and then, on submit, close the pop-up > window and reload the main site page. > Below is the form code that I am using. This works, except, of course, that > the data is never POSTED to /content_upload.jsp. The window closes and the > "opener" web page is reloaded with "/main_page.jsp", but the data is never > processed. > What is the work around. Is there something I can do in the form that will > allow the post to take place before closing the page. Or is there something > I can do in the /content_upload.jsp that would do the processing and then > close the window? > Looking for a JavaScript guru to lend a little advice. Thanks, > Jay > ------------------------------------------------- > PS. Yes, I do need enctype to be multipart, this form is simplified, but > many of them load images. > <form action="/content_upload.jsp" method="post" > enctype="multipart/form-data"> > <input type="text" name="data"><br/> > input type="submit" name="submit" value="Finish" > onClick="self.close();opener.location.href='/main_page.jsp'"><br> > </form> > > > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > http://www.LaTech.edu/mailman/listinfo/javascript >
- Follow-Ups:
- References:
- [Javascript] Closing pop-up window on form submit
- From: Jay Wright
- [Javascript] Closing pop-up window on form submit
- Prev by Date: [Javascript] Closing pop-up window on form submit
- 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):