cross domain permission denied problem

J

jonhoult

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
 
N

nikki

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.
 

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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top