Click to See Complete Forum and Search --> : Permission Denied - InnerHTML
I've got a script that retrieves the contents of an IFRAME to post with the form data, and it works fine in IE5.
IE6, however, generates a "Permission Denied" Error from the line:
return Editor.body.innerHTML;
Any ideas?
I thought it was going to be that, but when I query the domains, they are both identical (i.e. of document and the IFRAME).
Also, I can't access any properties or methods of the IFRAME (as I have mentioned in a different post).
I've seen IFRAMEs that are very similat to mine and they work in IE6, so I know it's possible!
Wel, by query, I mean alert(framename.document.domain);
I should have explained a bit better, Editor is actually a variable that is set to editorframe.document.
However, I've got it working now so there's no worries - thanks for your time though!
Basically, the iframe was referenced from a number of methods, and I was using the Editor variable rather than an explicit reference. Changing it to the full document.form.iframe.document got it working. Silly mistake on my part...