I want to render responsetext in my document which is inside an iframe. I am using document.write(responsetext) which works fine for all browsers except IE11.
Is there any alternative or workaround for this?
Also, it works fine in IE if this is done outside iframe.
The following code snippet is submitting a form using Ajax Post request.
Ext.Ajax.request({
method: 'POST',
url: g_globalsFromJsp.contextPath + '/UploadAction0.do',
params: formData,
success: function (response, opts) {
if (response.status ===200) { // OK
//Error Here
document.open();
document.write(response.responseText);
document.close();
}
},
failure : function(response, opts) {
//SomeAlertMessage
}
})
Edit: There are two different web pages involved in my issue. I will call them P1 and P2. P2 contains the above-mentioned code snippet and works fine independently. But When P2 is called from an iframe inside P1 the iframe goes blank in IE11. Also from P2 I cannot access the iframe.