[jQuery] Re: ajaxForm adding parameters to the success option function

2007-10-15 Thread Tom
Thanks Mike, I did not see your very quick reply before I got to send my second mail. That answers me questions nicely Cheers Tom On Oct 15, 3:09 pm, Tom <[EMAIL PROTECTED]> wrote: > Well that was quick, divine intervention is not to be underrated. > > The javascipt "this" keep word works for w

[jQuery] Re: ajaxForm adding parameters to the success option function

2007-10-15 Thread Tom
Well that was quick, divine intervention is not to be underrated. The javascipt "this" keep word works for what I need. So I am no longer in a fix but would still like to know how to pass extra parameters to this function On Oct 15, 2:56 pm, Tom <[EMAIL PROTECTED]> wrote: > Hi > > I know that

[jQuery] Re: ajaxForm adding parameters to the success option function

2007-10-15 Thread Mike Alsup
Tom, Try rewriting that using a closure to capture the button: function button_click(myform){ var button_output = '#' + myform.id + '_output'; var options = { target:button_output, beforeSubmit: loading, success:function(responseText, statusText) {