navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Window.Print a remote URL?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Window.Print a remote URL?
Page: [1]
 
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

:)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Window.Print a remote URL? - 5/28/2004 7:01:16   
Why not just let them download the catalog and print it themselves

see here

This way you can give them options

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to akashanpathways)
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

:)

(in reply to jaybee)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Window.Print a remote URL? - 5/28/2004 10:13:29   
quote:

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.


Yes you're right I am surprised.

I teach IT to adults. The print button is usually the first thing they go for, precisely because it looks like a printer and paper has a nice familiar feel. If anything, we have trouble stopping them printing everything in sight.

I think you're underestimating your customers. Anyway there is a way to do what you want but it's ASP or PHP.

< Message edited by jaybee -- 5/28/2004 15:20:20 >


_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to akashanpathways)
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

(in reply to akashanpathways)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Window.Print a remote URL? - 5/28/2004 10:34:58   
quote:

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!


The more I think about it, not at all cool.

I would want to see what I was printing before I did it. I certainly wouldn't want to suddenly find I had reams of print coming off, in colour, using up my expensive ink.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to dpf)
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

(in reply to jaybee)
akashanpathways

 

Posts: 23
Joined: 10/25/2003
Status: offline

 
RE: Window.Print a remote URL? - 5/28/2004 18:19:11   
When it comes to the print button, I wish I had your surfers/students. At one point I did have a paper catalog to print, but it was a bit cumbersome. I explained, on each page, that they could print using File>Print. I can't tell you how many emails I got telling me that there should be an easier way to print out the webpages instead of printing out every page.

When it comes to the actual printing, the ink situation makes sense. I could see ink jet printer owners becoming upset about the amount of ink used to print the catalog.

So I guess the best solution would be to keep my catalog the way it is - loading it in the window so customers can see what they are getting into during printing PLUS the simple "Click here to print the catalog" link.

Thanks for your input guys!

_____________________________

Love and Light,
Diana Velasquez
Five Year Webmistress of
http://www.akashanpathways.com

:)

(in reply to dpf)
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

(in reply to jaybee)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Window.Print a remote URL?
Page: [1]
Jump to: 1





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