Hey ppl,
I noticed this bug was reported multiple times before, but no solution has been found, currently i am trying to find a solution. I got a test situation, all help is welcome .
index.html
<!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>
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
damn, lol what a waste of time...
SOLUTION:
do not Call SetHTML(); with an empty string!
Daanoz
Re: GetHtml -- Permission Denied -- IE -- Test situation
right, still, not completely solved...
consider the following situation:
Re: GetHtml -- Permission Denied -- IE -- Test situation
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: