Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Same origin policy in IE

Status
Not open for further replies.

ancestral

Technical User
Joined
May 21, 2006
Messages
2
Location
IT
Hi all.
I m searching for the equivalent of :

try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
} catch (e) {
alert("Permission UniversalXPConnect denied.");
}

(that works for mozilla based browsers) in Internet Explorer.
The code above asks to the user to trust the script, so extends privileges such as same origin policy.
I have a page on local disk with 2 frames : A is a local page, B is on a server (for example I want A to access B properties (for example parent.B.location.reload() ); on Firefox it works perfectly (of course only after the consense of the user i.e me), but in IE I get a "Permission denied error".


Thanks,
Fabio
 
I had a look to hta files. But it was too complicated solution for me. My aim was accessing from local to some properties in my website page. I wanted to know if with IE was possible .
So I preferred changing UserAgent to Firefox :)

Thanks Dan,
Fanio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top