Advanced Search

Results 1 to 2 of 2

Thread: Iframe SSI script II causes Permission Denied Error

  1. #1
    Join Date
    Nov 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Iframe SSI script II causes Permission Denied Error

    1) Script Title:
    Iframe SSI script II

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...messi2_dev.htm

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

    Code:
    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....
    Last edited by Hans; 11-24-2006 at 08:00 AM. Reason: Mistake: Not AV was raised, but Permission Denied

  2. #2
    Join Date
    Aug 2004
    Posts
    9,864
    Thanks
    3
    Thanked 960 Times in 949 Posts
    Blog Entries
    15

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •