[jboss-user] [JBoss Seam] - Re: How to let user print off a list?
ellenzhao
do-not-reply at jboss.com
Thu Jul 26 13:56:44 EDT 2007
| <script type="text/javascript" language="JavaScript"><!--
| if(window.print) {
| document.write('<a href="javascript:window.print()">[click to print]</a>');
| }
| //--></script>
|
I found this code from here:
http://willmaster.com/blog/javascript/Four_Ways_To_Print_a_Web_Page.html
How to pass the formatted list to the "document" in the code above? And how do I use this javascript fragment in my .xhtml file? (I mean, how to bind this script to a button? ) Many thanks!
Regards,
Ellen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067950#4067950
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067950
More information about the jboss-user
mailing list