Jump to content

Access denied: Using the opener.document.location


Guest Jeck
 Share

Recommended Posts

Hi guys,On my site, I'm using both non-secured and secured (http:// and https://)protocols for the web pages.I have two types of pages one is the content page which can be viewed either in secure or not and the other is the registration page which is strictly to be accessed using secured.I have one registration page which opens on a pop-up window but it is lauched on a content page. So the content page is in non-secure and the pop-up registration page is in secure. On the pop-up registration page, there's a link which uses opener.document.location("URL linking to the content page"). But once I clicked on the link I got javascript error "Access Denied". I tried changing the code opener.location("URL linking to the content page") which obviously I just removed the .document and it works!. But the whole process is working when the content page is in secure then launched the pop-up registration form.I just want to know why when using the opener.document.location("URL") is having erros. Is there security issues when the parent and the pop-up window differs on protocols.Thanks,Jeck

Link to comment
Share on other sites

Hi guys,On my site, I'm using both non-secured and secured (http:// and https://)protocols for the web pages.I have two types of pages one is the content page which can be viewed either in secure or not and the other is the registration page which is strictly to be accessed using secured.I have one registration page which opens on a pop-up window but it is lauched on a content page. So the content page is in non-secure and the pop-up registration page is in secure. On the pop-up registration page, there's a link which uses opener.document.location("URL linking to the content page"). But once I clicked on the link I got javascript error "Access Denied". I tried changing the code opener.location("URL linking to the content page") which obviously I just removed the .document and it works!. But the whole process is working when the content page is in secure then launched the pop-up registration form.I just want to know why when using the opener.document.location("URL") is having erros. Is there security issues when the parent and the pop-up window differs on protocols.Thanks,Jeck

hi! i dont know much about the secure and non-secure connections(http:// and https://).But I think it is wrong to write opener.document.location = 'some URL';and it is correct to write opener.location = 'some URL'plz try it once
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...