[thelist] onClick(Image.Print())

Daniel Barker DBarker at uk.insight.com
Wed Jul 2 09:58:22 CDT 2003


No major suggestions, but why not put a (say) 5 second timer in after the
window.print that redirects to a page saying "The image has been sent to
your printer" then closes 2 seconds later. That way, the window would seem
like a kind of print confirmation rather than look like some kind of bug.


-----Original Message-----
From: Rob Smith [mailto:rob.smith at THERMON.com]
Sent: 02 July 2003 15:35
To: Thelist (E-mail)
Subject: [thelist] onClick(Image.Print())


Good morning, afternoon, night,

I'm not quite sure how to accomplish this, but I have an idea and am seeking
a better one. What I wanted to do is have an image and if the user clicks
it, the image would print. much like javascript:window.print().

That won't work since prints the whole page out. I also thought about this:

(the link)
<a href='javascript:openwindowprintthenclose()' title="Click this image to
print it out"><img src="/images/pic/gif"></a>

(the javascript)
function openwindowprintthenclose() {
   window.open("pages/printpic.htm")
}

printpic.htm:
<html>
<body onload="window.print();window.close()">
<img src="/images/pic.gif">
</body>
</html>

Perhaps you know of a slightly more elegant solution?

Rob.Smith
-- 
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

Evolt.org conference in London, July 25-27 2003.  Register today at
http://evolt.org.uk

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 


More information about the thelist mailing list