Click to See Complete Forum and Search --> : print in iframe


mad
07-17-2003, 09:00 AM
I have a page that contains an iframe, in this iframe I have a link which I hoped would print the contents of the page in the iframe itself but instead both window.print() and self.print() are just printing the containing page, window.frame[x].focus()/print() doesn't work at all. I cannot put the print link in the containing page as it would be inappropriate. Any feedback, even if to tell me I have the grey matter of a goldfish, will be welcome.

Charles
07-17-2003, 09:17 AM
If you've done everything right, and it looks as though you are, and still you cannot print the contents of the IFRAME then you may be bumping up against one of JAvaScript's security features. You cannot mess with other people's pages.

mad
07-17-2003, 09:35 AM
Thanks for your response Charles. Problem is I'm not messing with anyone elses pages, just my own and would like to be able to print the content that I have generated, sometimes security sucks.

So back to the drawing board I go...

Charles
07-17-2003, 09:37 AM
Then you must be doing something wrong. Please post your URL.

mad
07-17-2003, 11:50 AM
Charles, thanks again, I now know that there is nothing wrong with my code as runs fine in ie, but I am using opera7 and it seems that here my problem lies, so i have other avenues to go chase.

Will get back to you when i have this licked