no such interface supported when checking parent.frame.document

T

threeflush

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.
 
A

Arik Segal

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top