By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,624 Members | 1,687 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,624 IT Pros & Developers. It's quick & easy.

no such interface supported when checking parent.frame.document

P: n/a
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.

Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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, th********@hotmail.com wrote:
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.


Jul 23 '05 #2

P: n/a
Thanks Arik. I will give that a try.

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.