.ajaxForm VS .ajaxForm(.....).submit()
Hi all,
I'm attempting to debug the .ajaxForm. I have the library jquery.form.js installed with jquery-1.7.1.js and jquery-ui-1.8.17.custom.js. When I use.ajaxForm(....).submit(), the form gets submitted, but .ajaxForm(.....) without submit the form doesn't submit. What's yet even more frustrating, is that even with .submit() in place, I can Not get execution happen inside .ajaxForm(....), regardless what I do.It appears to be I don't understand this well. I looked on line, the API description and a sample are very straight forward, yet, something is wrong. Please help! Here is what I'm attempting to do:
- $('#lookUpFrm').ajaxForm(function(result) {
alert("AJAX:"+result)
}).submit();
alert("OK");