i am doing AJAX flow action from jquery.it is calling action.update() method;but after executing the method its not redirecting to thanku jsp.
after update method is over it should redirect to thanku page.

$.ajax({
url: '${flowExecutionUrl}&_eventId=save_update&ajaxSour ce=true',
});




<view-state id="display_template">
<transition on="save_update" to="update" />
</view-state>


<action-state id="update">
<evaluate expression="action.update()" />
<transition on="updatesuccess" to="thanku" />
</action-state>