|
Hi All,
I am using dojo.xhrPost ajax call, when the user enters his userid and password, I am using this ajax call to jump to a site different then the regular flow. I got a customer complaining that when he enters userid and password and click on the submit button, he gets popup in IE 9 asking him to open/save a file.
My ajax call is doing the following:
dojo.xhrPost({
url: url,
handleAs: "json",
content: {userid: userid, password : password
},
load: function (response, ioArgs) {
if (response.success) {
document.myform.target= "";
document.myform.action=response.url;
document.myform.method="post";
document.myform.userid=response.userid
document.myform.password=response.password
document.myform.submit();
}else{
handleMyFormError(response,userid);
}
return response;
.....................
In my jsp, i use the following:
<%
response.setContentType("application/json");
StringBuffer stBuf = new StringBuffer();
stBuf.append("{success: true,");
stBuf.append("url:'").append(jumpUrl).append("',");
stBuf.append("userid:'").append(userId).append("',");
stBuf.append("password:'").append(password).append("'");
stBuf.append("}");
out.append(stBuf.toString());
out.flush();
%>
Please let me know if there is any solution for this problem.
|