Re: WOSubmitButton closing the browser window
Re: WOSubmitButton closing the browser window
- Subject: Re: WOSubmitButton closing the browser window
- From: David Ress <email@hidden>
- Date: Thu, 5 Mar 2009 17:07:02 -0500
Hello Miguel,
Re: First
My copy mistake, yes, multipleSubmit is true. The development
computer is not allowed on a network so I was re-typing the html and
WOD and left that off.
Re: Second
You and Quniton Dolan both suggested this route. I admit it works,
but I was hoping for a more visually appealing implementation, but it
will work for now.
Thank you.
---
David Ress, PhD CEO - Chief Entertainment Officer
On Mar 5, 2009, at 4:36 PM, Miguel Angel Torres Avila wrote:
First,
I am not sure if it is a good Idea to close the browser window at the
same time you attempt to submit the form.
Second,
Is the multipleSubmit binding of your form set to true?
Finally, I think you should allow the browser window to complete the
submit (Request / Response) cycle and on the returned Response
render a JavaScript code that closes the window.
Or, if only want to close the window do not use a submit button, just
use a HyperLink
<a href="#" onClick = "window.close();"> Close Window </a>
Hope this helps.
On Mar 5, 2009, at 3:25 PM, David Ress wrote:
List,
I know I am missing something obvious, but lack of sleep, etc... is
keeping my neurons from firing...
I have 3 WOSubmitButton inside a WOForm, ie,
<webobject name="Form1">
<webobject name="DownloadButton"></webobject>
<webobject name="CloseButton"></webobject>
<webobject name="GraphButton"></webobject>
</webobject>
where:
Form1: WOForm {
}
DownloadButton: WOSubmitButton {
action = downloadReport;
value = "Download";
}
CloseButton: WOSubmitButton {
action = savedPage;
value = "Close";
onClick = "javascript:window.close();";
}
GraphButton: WOSubmitButton {
action = createGraphs;
value = "Graph";
}
DownloadButton and GraphButton work fine, it is the darn CloseButton
which is causing me issues.
Not sure what exactly my problem is, but if I remove the action
binding
from CloseButton's definition in the WOD then WOLips' component
editor complains. If I leave it in (savedPage returns the last
page visited),
then I receive the following error in the Eclipse console log
during runtime:
<WorkerThreadX> ... Exception while sending response:
java.net.SocketException: Broken pipe
What I want to do is close the web page without any errors, either
in WOLips
or the console log. Any thoughts? Better ways?
Oh, using Eclipse 3.3.2, WOLips 3.3.5563, Mac OS X 10.5.5, Wonder 5.4.
Thanks,
David
---
David Ress, PhD
Now with GDIT in Dayton, Ohio, but still using old email account
with ISTL.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40toracom.net
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden