form submit button and both onClick + callback
Petr Fischer <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I have simple submit button in my form, but I want both onClick (browser side javascript) and callback (server side smalltalk form submit code) to be called.
In the onClick, I want to just simply disable submit button (user can't click twice), like:
onClick: (JSStream on: '$("#submitButton").prop("disabled", "true");
But then (when onClick is defined), callback: is not executed.
Is it a bug? Any trick? Thanks! pf
_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside