aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes window.close not submitting properly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "window.close not submitting properly" Watch "window.close not submitting properly" New topic
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: 1321

can you please share your code snippet here..


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

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: 15376
    
    6
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: 15376
    
    6
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: 61774
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: window.close not submitting properly