
removido
(usa Nenhuma)
Enviado em 13/05/2011 - 15:52h
Ola pessoal, o meu problema eh o seguinte, eu não estou conseguindo fazer um script rodar no Chrome,
aparece o erro:editor.html:10Uncaught TypeError: Cannot call method 'getElementById' of undefined
no Mozilla ele Funciona tranquilo.
----------------index.html>
<FRAMESET ROWS="40%,25%" FRAMEBORDER="1" FRAMESPACING="2">
<FRAME SRC="view.html" NAME="viewer" SCROLLING="YES">
<FRAME SRC="editor.html" NAME="editorcod" SCROLLING="NO">
</FRAMESET>
----------------editor.html>
<SCRIPT>
function fncWritePage(cod){
if (cod == ''){
cod = " "
}
var texto = parent.viewer.document.getElementById("lblText");
texto.innerHTML = cod;
}
</SCRIPT>
<form name=forme>
<textarea type="text" id="txt" name="txtDesc" style="margin-top: 2px; margin-bottom: 2px; height: 100%; margin-left: 2px; margin-right: 2px; width: 100%; " onchange="fncWritePage(document.forme.txt.value)" onblur="fncWritePage(document.forme.txt.value)">
Hello World
</textarea>
</form>
----------------view.html>
<FORM name=formv>
<label id=lblText> </label>
</FORM>
Tentei um monte de coisa e nada teve efeito, sempre mostra um erro parecido;
Ja estou pensando que o chrome não tem suporte completo a frames
Vai Saber
Obrigado pela ajuda!!