[HTML_AJAX-devel] formSubmit response

Joshua Eichorn josh at bluga.net
Fri May 12 14:26:05 PDT 2006


Frederik wrote:
> Hi,
>
> I've been googling for a while now without any result. So here's my 
> question:
>
> I'm submitting a form using HTML_AJAX.submitForm(this, 'target', 
> {callback:myCallbackFunction()}) but it seems that if I define a 
> callback function the target's innerHTML is not replaced any more. Is 
> there a return value which I could pass to the callback function or is 
> this a bug?
>
> HTML_AJAX.submitForm(this, 'target'); works perfectly.
>
> regards
>
> Frederik
> _______________________________________________
> Html_ajax-devel mailing list
> Html_ajax-devel at lists.bluga.net
> http://lists.bluga.net/mailman/listinfo/html_ajax-devel
When you define a callback it replaces the default one that updates the 
target.  You can do both by defining a callback like:
callback:function(result) {
 HTML_AJAX_Util.setInnerHTML('target',result);
 // other stuff
}

-josh


More information about the Html_ajax-devel mailing list