Fórum
aui-dialog problem rendering servlet response as content in IE
Almas Adilbek, modificado 12 Anos atrás.
aui-dialog problem rendering servlet response as content in IE
New Member Postagens: 15 Data de Entrada: 28/06/11 Postagens Recentes
Hello,
I have simple code where I'm trying to open dialog window with user information.
User information is getting via calling servlet (servlet name:GetUserProfileServlet).
It works fine in FF, chrome, but in IE (9 and 7, it works in version 8 ) it doesn't.
When I use developer tool to watch the servlet response in network tab, there is no problem. I see retrieved html content.
The error occurs in concole tab, it says: SCRIPT5007: Could not get property value "toLowerCase": the value of the object is NULL or not specified
The dialog itself appears, but loading mask waiting for content never stops, because of error occurence.
Please help!
I have simple code where I'm trying to open dialog window with user information.
User information is getting via calling servlet (servlet name:GetUserProfileServlet).
It works fine in FF, chrome, but in IE (9 and 7, it works in version 8 ) it doesn't.
When I use developer tool to watch the servlet response in network tab, there is no problem. I see retrieved html content.
The error occurs in concole tab, it says: SCRIPT5007: Could not get property value "toLowerCase": the value of the object is NULL or not specified
AUI().use('aui-dialog', 'aui-io', 'event-custom', 'io-form', function(A) {
var dialog = new A.Dialog({
title:"Title",
centered: true,
draggable: true,
resizable: false,
width:550,
height:450,
buttons: [{
text: 'Close',
handler: function() {
dialog.close();
}
}]
}).plug(A.Plugin.IO, {uri: '<%=cpath %>/[b]GetUserProfileServlet[/b]?ID='+userid+'&sn='+sn}).render();
dialog.show();
}
The dialog itself appears, but loading mask waiting for content never stops, because of error occurence.
Please help!
Aritz Galdos, modificado 12 Anos atrás.
RE: aui-dialog problem rendering servlet response as content in IE
Expert Postagens: 416 Data de Entrada: 15/05/07 Postagens Recentes
Hi Almas:
Did you get a solution for this? I am facing same problem.
Regards,
Aritz
Did you get a solution for this? I am facing same problem.
Regards,
Aritz
Almas Adilbek, modificado 12 Anos atrás.
RE: aui-dialog problem rendering servlet response as content in IE
New Member Postagens: 15 Data de Entrada: 28/06/11 Postagens Recentes
Hi!
In javascript file, I just put try catch around the code where it throws exception. Now it works.
Maybe it's not best solution, I hope in new liferay version, guys will solve it.
In javascript file, I just put try catch around the code where it throws exception. Now it works.
Maybe it's not best solution, I hope in new liferay version, guys will solve it.