Virker i FF, men ik i IE???
Hey alle...Mit problem er at når det er jeg trykker på knappen "Indæt indhold i editor", så får jeg en fejl i IE, det virker fint i FF, og den erstatter det teksten "Klik for at indsætte indhold" - Fatter ik hvad problemet er:
<script type="text/javascript" language="javascript" src="http://resources.synkronvia.com/javascript/datetimepicker.js"><!----></script><form action="" method="post" name="DocumentForm" id="DocumentForm"><div id="ContainerViaDocumentName"><label for="ViaDocumentName">Document name</label><input type="text" id="ViaDocumentName" name="ViaDocumentName" value="New document" /></div><table border="0" cellpadding="8" width="100%"><tr><td><div class="
 field"><label class="lbl" for="Heading">Overskrift</label><input id="Heading" name="Heading" value="" /><span class="required">*</span><div class="sublabel" /></div></td></tr><tr><td><div class="
 field"><label class="lbl" for="TextContent">Tekst</label><div style="background-color:white;cursor:hand;" onclick="
 document.getElementById('TextContent_EditorLayer').style.display='block';
 " id="TextContent_EditorOutput">
Klik for at indsætte indhold her.
</div><input id="TextContent" name="TextContent" type="hidden" value="" /><div class="editorDiv" id="TextContent_EditorLayer"><iframe src="/SynkronViaEditor/DocumentEditor/Editor.aspx" class="visualEditorIFrame" frameborder="0" id="TextContent_Editor" name="TextContent_Editor"> </iframe><input type="button" value="Cancel" onclick="
 document.getElementById('TextContent_EditorLayer').style.display='none';
 //push content to the iframe editor
 hiddenField = document.getElementById("TextContent")
 window.frames.TextContent_Editor.SetContent(hiddenField.value);
 " /><input type="button" value="Ok" onclick="
 document.getElementById('TextContent_EditorLayer').style.display='none';
 hiddenField = document.getElementById("TextContent")
 content = window.frames.TextContent_Editor.GetContent();
 hiddenField.value=content;
 document.getElementById('TextContent_EditorOutput').innerHTML = content;
 " /></div><script>
window.attachEvent("onload", function(){
//push content to the iframe editor
hiddenField = document.getElementById("TextContent")
window.frames.TextContent_Editor.SetContent(hiddenField.value);
});
/*
document.DocumentForm.attachEvent("onsubmit", function(){
//get content from the iframe editor and place it in the backing field
hiddenField = document.getElementById("TextContent")
content = window.frames.TextContent_Editor.GetContent();
hiddenField.value=content;
return true;
});
*/
</script><div class="sublabel" /></div></td></tr></table><input type="button" onclick="history.back();" value="Cancel" /><input type="submit" value="Ok" /></form>