access denied problem

D

dana lees

Hi,

I have a frameset that contains 2 frames.
The upper frame has a "print" button. The lower frame has been redirected to
a URL that was sent to it in a QueryString.
When trying to call window.print() from the upper frame to the lower frame i
get an "access denied" error.
How can i solve this problem?

Thanks,
Daan
 
N

Nicole Calinoiu

Is the page displayed in the lower frame on the same site as the one in the
upper frame? If not, you are attempting to perform cross-site scripting,
which is not permitted by many browsers for security reasons. You might
just have to let the users print from their browsers if the target page
doesn't have its own printing link or button.

BTW, it's also a potential security risk to redirect to URLs specified in
query strings. You might want to consider mapping allowed target URLs to
unique identifiers that can be used in the query string in place of the URL
itself.
 

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

Top