loading
onDone
<html:view>
<ajax:function name="data" url="/app/ajax" executeOnDocumentLoad="true">
    <ajax:onDone>
     alert('on function done');
    </ajax:onDone>
</ajax:function>
</html:view>