GetHtml - Permission Denied -- IE -Test situation (SOLVED)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="nl" xml:lang="nl">
<head>
<title>FckBugTest -- Ivengi</title>
</head>
<body>
<script>
var FckEditorList = new Array();
function FCKeditor_OnComplete( editorInstance ) {
FckEditorList.push(editorInstance);
}
function addTplBlock()
{
var value = FckEditorList[0].GetHTML(false);
FckEditorList[0].SetHTML("");
document.getElementById("FormInstance").submit();
}
</script>
<form method="post" target="previewFrame" action="target.php" name="_0" id="FormInstance" >
<script type="text/javascript" src="http://localhost/fckeditor263/fckeditor.js"></script>
<textarea id="_tplf_FCK_11" name="_tplf_11" rows="10" cols="40"></textarea>
<script type="text/javascript">
<!--
var oFCKeditor__tplf_FCK_11 = new FCKeditor("_tplf_FCK_11","300", "250", "Default");
oFCKeditor__tplf_FCK_11.BasePath = "http://localhost/fckeditor263/";
oFCKeditor__tplf_FCK_11.ReplaceTextarea();
//-->
</script>
<input class="addbutton" type="button" name="Submit" value="Add" onclick="addTplBlock();"/></div>
</form>
<script>
</script>
<IFRAME name="previewFrame" height="400" frameborder="0" width="936" style="background-color: transparent;width: 936px; height: 400px;" id="ExampleFrame"></IFRAME>
</body>
</html><?php
print_r($_POST);
?>
Re: GetHtml -- Permission Denied -- IE -- Test situation
So my guess is that this command transfers the permissions of the FckEdtior Object to an other component
Re: GetHtml -- Permission Denied -- IE -- Test situation
Re: GetHtml -- Permission Denied -- IE -- Test situation
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="nl" xml:lang="nl"> <head> <title>FckBugTest -- Ivengi</title> </head> <body> <script> var FckEditorList = new Array(); function FCKeditor_OnComplete( editorInstance ) { FckEditorList.push(editorInstance); } function addTplBlock() { for(var fci = 0; fci < FckEditorList.length; fci++) { //var value = FckEditorList[0].GetHTML(false); FckEditorList[fci].SetHTML("<p> </p>"); } document.getElementById("FormInstance").submit(); } </script> <form method="post" target="previewFrame" action="target.php" name="_0" id="FormInstance" > <script type="text/javascript" src="http://localhost/fckeditor263/fckeditor.js"></script> <textarea id="_tplf_FCK_10" name="_tplf_10" rows="10" cols="40"></textarea> <script type="text/javascript"> <!-- var oFCKeditor__tplf_FCK_10 = new FCKeditor("_tplf_FCK_10","300", "250", "Default"); oFCKeditor__tplf_FCK_10.BasePath = "http://localhost/fckeditor263/"; oFCKeditor__tplf_FCK_10.ReplaceTextarea(); //--> </script> <textarea id="_tplf_FCK_11" name="_tplf_11" rows="10" cols="40"></textarea> <script type="text/javascript"> <!-- var oFCKeditor__tplf_FCK_11 = new FCKeditor("_tplf_FCK_11","300", "250", "Default"); oFCKeditor__tplf_FCK_11.BasePath = "http://localhost/fckeditor263/"; oFCKeditor__tplf_FCK_11.ReplaceTextarea(); //--> </script> <input class="addbutton" type="button" name="Submit" value="Add" onclick="addTplBlock();"/></div> </form> <script> </script> <IFRAME name="previewFrame" height="400" frameborder="0" width="936" style="background-color: transparent;width: 936px; height: 400px;" id="ExampleFrame"></IFRAME> </body> </html>Re: GetHtml -- Permission Denied -- IE -- Test situation
var FCKNAME = FckEditorList[fci].Name; document.getElementById(FCKNAME + "___Frame").contentWindow.document.getElementById('xEditingArea').getElementsByTagName('iframe')[0].contentWindow.document.getElementsByTagName('body')[0].innerHTML = "";Re: GetHtml - Permission Denied -- IE -Test situation (SOLVED)
it seems that for some reason the and objects are what's getting access denied, but the real elements they point to are not (I don't know why), the solution would be this: