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

cross domain permission denied problem

P: n/a
Hi folks, I'm trying to access window opener properties for some ad
code. Sometimes the launching page is in a different domain, and i need
my script to recognize this fact and move on to something else without
producing the "permission denied" error for all users to see. i've
already got if(opener){etc.} in there but that still returns as true,
even though we theoretically can't access properties of the opener
which is in another domain.

Can anybody think of any solutions that don't involve ugly active X
objects? I guess what i'm basically looking for is some way of saying
"if permission is denied on this object, don't try to access it's
properties and set to a default value instead".

Thanks

Oct 11 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

jo******@gmail.com wrote:

Can anybody think of any solutions that don't involve ugly active X
objects? I guess what i'm basically looking for is some way of saying
"if permission is denied on this object, don't try to access it's
properties and set to a default value instead".


Try/catch is your friend.

Oct 11 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.