View Full Version : Iframe SSI script II causes Permission Denied Error

11-24-2006, 07:57 AM
1) Script Title:
Iframe SSI script II

2) Script URL (on DD):

3) Describe problem:
In the function resizeIframe(frameid), line

else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax

the attribute that is refered to, Document, causes a Permission Denied error in IE6 and IE7.
Reason: the capital D in Document!!!!

Possible solution:
change 'currentfr.Document' into 'currentfr.document'
OR !!!!!
instead of using Document, the attribute contentDocument should have been used, but that is more of a logical question....

11-24-2006, 10:00 AM
Are you sure you're not getting the "permission denied" error due to the iframe page being from an outside domain (relative to your site), for example, google.com? The syntax "Document" is correct.