[Rails] Re: Printing the contents of a DIV

2009-06-12 Thread John Ivanoff
or body div id=for_screen_display this is stuff I don't want to print. /div div id=for_screen_and_print_display this is content for screen and print. /div /body print.css -- div#for_screen_display { display:none; }

[Rails] Re: Printing the contents of a DIV

2009-06-11 Thread Marnen Laibow-Koser
Ruby on Rails: Talk wrote: Hi Is there any way to be able to get a function (or something?!) to print the contents of a DIV without loading the div into it's own window etc? [...] Most browsers these days understand CSS @media directives, so use a print stylesheet to turn off display on

[Rails] Re: Printing the contents of a DIV

2009-06-11 Thread Xavier Noria
On Thu, Jun 11, 2009 at 9:23 PM, Ruby on Rails: Talkdazzaroo...@gmail.com wrote: Is there any way to be able to get a function (or something?!) to print the contents of a DIV without loading the div into it's own window etc? I've googled like crazy but seem to be asking the impossible. Any

[Rails] Re: Printing the contents of a DIV

2009-06-11 Thread Ruby on Rails: Talk
Hi No :( Sorry. I'I have a number of DIV's on a page. One of which contains a calendar or events. Rather than have to reload a page with just the calendar on it (to allow for printing), it would seem easier to find a way to click a button and only the div containing the calendar will print.

[Rails] Re: Printing the contents of a DIV

2009-06-11 Thread Hassan Schroeder
On Thu, Jun 11, 2009 at 1:49 PM, Ruby on Rails: Talkdazzaroo...@gmail.com wrote: I'I have a number of DIV's on a page. One of which contains a calendar or events. Rather than have to reload a page with just the calendar on it (to allow for printing), it would seem easier to find a way to

[Rails] Re: Printing the contents of a DIV

2009-06-11 Thread Ruby on Rails: Talk
This sounds excellent! Just need to work out how to do it. On Jun 11, 9:59 pm, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Thu, Jun 11, 2009 at 1:49 PM, Ruby on Rails: Talkdazzaroo...@gmail.com wrote: I'I have a number of DIV's on a page. One of which contains a calendar or

[Rails] Re: Printing the contents of a DIV

2009-06-11 Thread bill walton
Hi Darren, On Thu, 2009-06-11 at 12:23 -0700, Ruby on Rails: Talk wrote: Hi Is there any way to be able to get a function (or something?!) to print the contents of a DIV without loading the div into it's own window etc? I've googled like crazy but seem to be asking the impossible. Any

[Rails] Re: Printing the contents of a DIV

2009-06-11 Thread Älphä Blüë
Bill that was really good information and detailed - many thanks! I was actually looking for something like this about 3 days ago but put it on the backburner. I'm bookmarking the thread for later use. Thanks. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Printing the contents of a DIV

2009-06-11 Thread bill walton
Hi, On Fri, 2009-06-12 at 00:42 +0200, Älphä Blüë wrote: Bill that was really good information and detailed - many thanks! I was actually looking for something like this about 3 days ago but put it on the backburner. I'm bookmarking the thread for later use. Thanks. You're welcome.