Click to See Complete Forum and Search --> : Permission Denied - InnerHTML


Geat
03-07-2003, 02:47 AM
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?

Geat
03-07-2003, 07:00 AM
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!

Geat
03-10-2003, 02:54 AM
Wel, by query, I mean alert(framename.document.domain);

Geat
03-10-2003, 06:43 AM
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!

Geat
03-10-2003, 06:54 AM
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...