BarryDev wrote:
> 
> 
> This returns an empty zone so there is no visible result on the page when
> you click submit, is this what's causing my form not to be reset or is
> that the expected behaviour.  The ideal behaviour would be if there was an
> onComplete method that I could set on my form so once the ajax post is
> sent, I could use javascript to clean out the form.  Is this possible? 
> 
> 

I managed to get a solution to this by using JQuery to bind a listener to
clicks on the submit button.  Here's the javascript I used:
jQuery(".t-beaneditor-submit").bind("click", function() {
                                        setTimeout(function() 
{jQuery("#contents").val("");},500); 
                        });

I had to use a setTimeout so that the reset happens after the ajax submit of
the form occurs.  This code seems really fragile and I'd much rather if I
could register a callback function on the form which gets called after the
submit has completed or else the form just gets reset itself.
-- 
View this message in context: 
http://www.nabble.com/-T5----Using-a-mixin-on-a-beaneditform-to-do-an-submit-without-a-page-reload-tp20208457p20294242.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to