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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.