how can i trigger this function without using the form submit?
$(\'#myForm\').submit(function() { ....
Extract code from callback to function and call it when it is needed.