| Author |
window.close not submitting properly
|
Karup Mew
Ranch Hand
Joined: Aug 11, 2007
Posts: 40
|
|
Hi all, I have a popup window when I click submit button it automatically close the window and submit the parameters also.I use window.close method for this but sometimes it does not submit the parameters any solution for this .
|
 |
Muhammad Saifuddin
Ranch Hand
Joined: Dec 06, 2005
Posts: 1318
|
|
|
can you please share your code snippet here..
|
Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
|
 |
Muhammad Saifuddin
Ranch Hand
Joined: Dec 06, 2005
Posts: 1318
|
|
|
or you can use JavaScript debugger (firebug). this may help you to track your code by using break point.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
If you close the window, there is a chance that it will beat the form submission out. Only way to make sure that the form is submitted is to only close the window when the page comes back from the server. Eric
|
 |
Karup Mew
Ranch Hand
Joined: Aug 11, 2007
Posts: 40
|
|
Originally posted by Eric Pascarello: If you close the window, there is a chance that it will beat the form submission out. Only way to make sure that the form is submitted is to only close the window when the page comes back from the server. Eric
I am not closing the window. The scenario is when i clicked the submit button it submits the parameters and then it will close, but here sometimes it will close without submit the parameter values.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
If you are not closing the window than how is it being closed. A submit button does not close a window. Eric
|
 |
Karup Mew
Ranch Hand
Joined: Aug 11, 2007
Posts: 40
|
|
|
when click the submit button the onclick calls windows.close method it closes the window but sometimes the input parameters are not sent to server side that's my problem
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56157
|
|
Originally posted by Karup Mew: when click the submit button the onclick calls windows.close method it closes the window but sometimes the input parameters are not sent to server side that's my problem
Then actually read Eric's first reply, which completely answers your question.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: window.close not submitting properly
|
|
|