no such interface supported when checking parent.frame.document

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • threeflush@hotmail.com

    #1

    no such interface supported when checking parent.frame.document

    I have some code that checks to see if a document object exists in a
    sibling frame before continuing processing like:

    if (parent.frames[4].document){
    ....
    }

    However, sometimes the frame I'm checking has an Adobe Reader 7.0 pdf
    file in it. If it does, and when it hits the above line of code, the
    error message:

    "No such interface supported"

    The odd thing is this ONLY happens with Adobe 7.0. 6.0 and previous
    work just fine.

    I'm not able to find anything at the Adobe website regarding 7.0 and
    all other references (that I've seen) to this error refer to IE 4.0 or
    the window.open method.

    Any ideas? Thanks.

  • Arik Segal

    #2
    Re: no such interface supported when checking parent.frame.do cument

    I'm not sure if this solution is good for you, but maybe you can
    devide the check in two. first check to see if the location string of
    the frame ends with '.pdf', and only if it doesn't, go on to the
    document object check.

    --
    Arik Segal


    On 30 Mar 2005 14:56:39 -0800, threeflush@hotm ail.com wrote:
    [color=blue]
    >I have some code that checks to see if a document object exists in a
    >sibling frame before continuing processing like:
    >
    >if (parent.frames[4].document){
    >...
    >}
    >
    >However, sometimes the frame I'm checking has an Adobe Reader 7.0 pdf
    >file in it. If it does, and when it hits the above line of code, the
    >error message:
    >
    >"No such interface supported"
    >
    >The odd thing is this ONLY happens with Adobe 7.0. 6.0 and previous
    >work just fine.
    >
    >I'm not able to find anything at the Adobe website regarding 7.0 and
    >all other references (that I've seen) to this error refer to IE 4.0 or
    >the window.open method.
    >
    >Any ideas? Thanks.[/color]

    Comment

    • threeflush

      #3
      Re: no such interface supported when checking parent.frame.do cument

      Thanks Arik. I will give that a try.

      Comment

      Working...