I am using jQuery Form Plugin to make an ajax call and target the response to an iFrame.
Here’s the piece of code:
function getResponse(requestData) {
$('#myForm').ajaxSubmit({
type: "POST",
url: "servlet/myServletPath",
data: {requestData: requestData},
timeout: 10000000,
iframe: true
});
}
This works just fine except my servlet can’t find any parameter with the name ‘requestData’. The same starts working when I remove ‘iframe: true’. But I need to post my response to an iframe.
Any idea what exactly is happening here?
Thanks
Tried using GET instead of POST. It worked just fine for me. 🙂