|
| |
|
|
akashanpathways
Posts: 23 Joined: 10/25/2003 Status: offline
|
Window.Print a remote URL? - 5/27/2004 22:10:54
Okay, I have this great page that contains a print-ready "catalog" version of my website at http://www.akashanpathways.com/catalog/index.htm The trick is: How do I place a link to print the page without having to load it in the window? The code javascript.window.print() only works if the page is loaded. I want customers to be able to print the catalog.htm page without having to load it. I've seen some workarounds using javascript, but it's too complicated, especially when trying to load the script into shared borders. Anyone have a good solution?
_____________________________
Love and Light, Diana Velasquez Five Year Webmistress of http://www.akashanpathways.com
|
|
|
|
akashanpathways
Posts: 23 Joined: 10/25/2003 Status: offline
|
RE: Window.Print a remote URL? - 5/28/2004 9:29:04
I don't want what you have because most surfers don't use the File>Print option or even the print button on their browser because they don't understand it. You'd be surprised. What you have is a button labeled "HTML" which opens the page before it can be printed, with no print dialog box. To make it easy for surfers to print the page, I use: <A HREF="javascript:window.print()">Print this Page</A> in the page that opens up, so the surfer doesn't have to select File>Print from their browser. Also, the entire page has to load itself in the browser before it will print. Now I want to add more to that. I want script to automatically open the print dialog to print a remote (*stressing remote*) page/url. I do not want to open the catalog page in the browser. In other words, I want a text link, available through any page on my site through the use of shared borders, that will open the print dialog box and print the remote page/url - how cool would that be! I tried: <A HREF="javascript:window.print('http://www.akashanpathways.com/catalog/index.htm)">Print the Catalog</A> and <A CLASS="headlink" HREF="javascript:void window.open 'http://www.akashanpathways.com/catalog/index.htm'))"> but neither work. Maybe the page will print if I load it into a hidden frame and add some custom javascript, but I hate frames (thanks Frontpage) and I'm not a javascript coder. I guess I'm asking too much - it seems other webmasters are having the same problem and no one has a real workaround solution. No, I don't want to create a .pdf file. The catalog pages are iframe links from other parts of my website - so when my website gets updated, the catalog gets updated. Creating a .pdf is additional work - and that's what I'm trying to avoid. Here is the link again: http://www.akashanpathways.com/catalog/index.htm Any additional insight would be helpful.
_____________________________
Love and Light, Diana Velasquez Five Year Webmistress of http://www.akashanpathways.com
|
|
|
|
dpf
Posts: 7126 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: Window.Print a remote URL? - 5/28/2004 10:15:26
quote:
I don't want what you have because most surfers don't use the File>Print option or even the print button on their browser because they don't understand it. You'd be surprised. I would be surprised.....I think most surfers are savvy enough to print a page
_____________________________
Dan
|
|
|
|
dpf
Posts: 7126 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: Window.Print a remote URL? - 5/28/2004 10:37:35
quote:
I certainly wouldn't want to suddenly find I had reams of print coming off, in colour, using up my expensive ink. excellent point
_____________________________
Dan
|
|
|
|
Anne Lindberg
Posts: 29 Joined: 6/1/2004 From: CT Status: offline
|
RE: Window.Print a remote URL? - 6/23/2004 15:39:28
I've been searching the forum for some help and I found this reply. Could you please tell me how you would do this in ASP? I added a button to print my page but the "standard" style sheet I'm using is messing up the margins. I would like to redirect the window.print() function to print a page that doesn't have the style sheet. I hope you can help because I've been having a hard time with this. Thank you
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|