Click to See Complete Forum and Search --> : javascript print()


rkmarcks
12-18-2002, 02:42 AM
I have frameset that opens as a popup window with no decorations. The frameset has two frames. The top frame is a 'controller' with forward, back, close, and print buttons to control the contents of the lower frame.

The lower frame is loaded with a page from another site within the same domain, but from a different server. (Ironically, it's from another one of my own sites). The print() button in the top frame will not print anything in the bottom frame that does not come from the same server.

Is there anyway to allow the print() method to print the contents of the bottom frame when it contains a page from another site, or is this a security issue that cannot be circumvented?

RKM

rkmarcks
12-19-2002, 01:32 AM
The popup window is 'activated' from webct.sinclair.edu

When the popup loads (as a frame), the top window loads with a file from webct.sinclair.edu/SCRIPT/dl_met198_marcks/scripts/serve_home


The bottom frame loads with a file from www.sinclair.edu/community/daytonashrae/browsing_safe.htm

The webct. portion of the URL is obviously just an alias. But I can assure these are two different srevers. The first server is a Windows server dedicated to WebCT. The second is a Unix server.

I know cross-domain access is a problem, but cross-server within the same domain? Didn't think that was an issue.

RKM

rkmarcks
12-19-2002, 03:46 PM
Yes. The error message is 'access denied'. Although I understand the security issues associated with cross-domain access, this is not. Only across different servers. But the more I think about it, I'm beginning to realize why you wouldn't want the print() method to work across different domains. But it still puzzles me why it won't work across different servers.

By the tone of your question, cna I assume this is something for which there is unlikely a workaround?

RKM

rkmarcks
12-20-2002, 02:35 AM
I did talk to the web administrator today. He was thinking it is a cross-platform issue (Win to Unix), but that doesn't sound right to me either. In any case, they're replacing the Unix server with a Windows server in a couple of months and are hoping it will solve the problem.

Thanks
RKM

P.S. Maybe that tone was just a short in my sound card ;)