I am using jquery.iframe-transport.js to upload a file using IFrame & Ajax (using Internet Explorer) The file is correctly uploaded and the server responds back with appropriate response for every call. However, the response "data" in the callback function "complete" always contains the previous/older response. Even clearing cache and using a new browser doesn't seem to help. Any idea what must be happening?
$(function() {
//alert("Loading");
getLDAPUsers();
//getDummyUsers();
//This will submit the file content using Ajax via Iframe
$("#myForm").submit(function() {
alert("Submitting Ajax");
$.ajax(this.action, {
data: $(":text", this).serializeArray(),
files: $(":file", this),
//iframe: true,
processData:false
}).complete(function(data) {
debugger;
alert("Response from server ::: "+data.responseText);
});
});