thanks so much johannes...this is exactly why i threw this open in this
forum cuz i knew there was something more to printing web pages than the
javascript...this is noted. thanks

On 2/27/07, Johannes Fahrenkrug <[EMAIL PROTECTED]> wrote:

You might also want to take a look at the @media CSS directive.
This enables you to give the page a different style depending on
whether you want to display it on the screen or print it, ie:

<style>
@media print {
  #hidewhenprinted  {display:none; height:0}
}
@media screen {
  #hidewhenprinted {display:block; height:auto}
}
</style>

and farther down...

<div id="hidewhenprinted">
   <div style="float:left">
     <input type="button" value="Print"
onclick="javascript:window.print()">
   </div>
   <div style="float:right">
      <input type="button" wicket:id="closeButton" value="Close">
   </div>
</div>

That way you can have a print button on the page, but the button itself
won't be printed.

- Johannes

Ayodeji Aladejebi wrote:
> hehe..very trivial i dint know what i was thinking..anyway thanks
>
> On 2/26/07, *Eelco Hillenius* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Do you have such a link, or are you looking for suggestions on how
to
>     create one? If the latter is the case, just render the page you want
>     to print and have javascript: window.print() somewhere, e.g. as a
>     header contribution.
>
>     Eelco
>
>     On 2/26/07, Ayodeji Aladejebi < [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>> wrote:
>     >
>     > PrinterLink print = new PrinterLink("printoutlink",
>     PageToPrint.class);
>     >
>     > any need for this
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>
-------------------------------------------------------------------------
>     > Take Surveys. Earn Cash. Influence the Future of IT
>     > Join SourceForge.net's Techsay panel and you'll get the chance
>     to share your
>     > opinions on IT & business topics through brief surveys-and earn
cash
>     >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     <
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>     > _______________________________________________
>     > Wicket-user mailing list
>     > Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>     > https://lists.sourceforge.net/lists/listinfo/wicket-user
>     >
>     >
>
>
-------------------------------------------------------------------------
>     Take Surveys. Earn Cash. Influence the Future of IT
>     Join SourceForge.net's Techsay panel and you'll get the chance to
>     share your
>     opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     <
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>     _______________________________________________
>     Wicket-user mailing list
>     Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to