Fwd: Safari: Using a WOSubmitButton inside a JSConfirmPanel
Fwd: Safari: Using a WOSubmitButton inside a JSConfirmPanel
- Subject: Fwd: Safari: Using a WOSubmitButton inside a JSConfirmPanel
- From: "Nathan C. Hampton" <email@hidden>
- Date: Sun, 31 Aug 2003 19:48:53 -0500
This one also got held up in cyberspace.....
Begin forwarded message:
From: Nathan Hampton <email@hidden>
Date: Fri Aug 29, 2003 12:49:15 PM America/Chicago
To: email@hidden
Subject: Re: Safari: Using a WOSubmitButton inside a JSConfirmPanel
On Friday, August 29, 2003, at 09:05 AM, Kaj Hejer wrote:
Hi!
In some of our GUIs for edting items in WO appplications we have
three sumbit-buttons:
save cancel delete
The deletebutton is inside a JSConfirmPanel to make the user confirm
a delete.
When clicking the deletebutton in any browser except from Safari only
the method bound to the action binding of JSConfirmPanel is >> triggered.
In Safari both the actionmethod for the JSConfirmPanel and the
WOSubmitButton are triggered, and we get the following in the log for
the application:
[2003-08-29 15:44:29 CEST] <WorkerThread4> <WOWorkerThread id=4
socket=Socket[addr=/127.0.0.1,port=62835,localport=8888]> Exception
while sending response: java.net.SocketException: Broken pipe
The html-generated is
<a onClick="return confirm('Are you sure?')"
href="/as/WebObjects/nettlogg.woa/wo/
5.0.0.0.UIOProfilContainerNOR.16.2.1.1.11.5.0.2">
<input type=submit value="Delete"
name="0.0.0.UIOProfilContainerNOR.16.2.1.1.11.5.0.2.7">
</a>
Disclaimers first: I haven't used JSConfirmPanels yet (though I expect
to need them very soon), so I'm not sure exactly how they work, and
it's possible that your context and situation may preclude this, but I
probably wouldn't use a link. My inclination would be to keep the
WOSubmitButton in a form, and bind the action to a method that would
then trigger a JSConfirmPanel, which would then return a boolean to
the calling action indicating whether or not to continue.
Hope this helps!
--Nathan Hampton (email@hidden)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.