jQuery ajaxSubmit() API issue with 'iframe: true' -
i using jquery form plugin make ajax call , target response iframe.
here's piece of code:
function getresponse(requestdata) { $('#myform').ajaxsubmit({ type: "post", url: "servlet/myservletpath", data: {requestdata: requestdata}, timeout: 10000000, iframe: true });
}
this works fine except servlet can't find parameter name 'requestdata'. same starts working when remove 'iframe: true'. need post response iframe.
any idea happening here?
thanks
you response success function if succeded add success function
success: function (response) { // perform process after succeeding iframe: true }, error: function (xhr, status, error) { alert(error); }
Comments
Post a Comment