Inquiridor
JS Problema

Pergunta
-
Boa tarde galera estou com um problema em JS,
function init() { if (typeof (form1.closeWindow) == "object") { if (trim(form1.closeWindow.value) == "true") { var objWindow = window.dialogArguments; if (typeof (objWindow) == "object") objWindow.document.forms[0].submit(); } window.top.close(); } }
estou tentando executar o código acima mas estou com algumas dificuldades, a propriedade dialogArguments está vindo como "undefinied" entao sempre o objeto objWindow fica undefinied também e isso impede que eu possa dar um submit no form, alguem pode me ajudar ?
http://luisgustavo12.wordpress.com/
Todas as Respostas
-
Se voce recentemente fez a atualizaçao do Windows, entao pode ser essa a causa:
a soluçao é desinstalar o KB
*UPDATE:
*******************
The Windows Update KB3008923 is the update that broke this in IE. Uninstalling this update fixed my problems until Microsoft puts out a fix.
Looks like this is where they broke it, messing around with dialogArguments: https://support.microsoft.com/kb/3020809
*******************William John Adam Trindade
Analyste-programmeur
----------------------------------------------------------
-
Se voce recentemente fez a atualizaçao do Windows, entao pode ser essa a causa:
a soluçao é desinstalar o KB
*UPDATE:
*******************
The Windows Update KB3008923 is the update that broke this in IE. Uninstalling this update fixed my problems until Microsoft puts out a fix.
Looks like this is where they broke it, messing around with dialogArguments: https://support.microsoft.com/kb/3020809
*******************
William John Adam Trindade
Analyste-programmeur
----------------------------------------------------------
Bom dia William,
Verifiquei no histórico de atualização e não encontrei essa atualização.
Também verifiquei nas atualizações disponíveis para instalar e encontrei a mesma lá.
http://luisgustavo12.wordpress.com/
- Editado GuSouza segunda-feira, 9 de fevereiro de 2015 11:46
-