How to print

A submit action shows me the show.html.erb page.
How to print this page to a printer?
I have to use javascript print() method?

Msan M. wrote:

A submit action shows me the show.html.erb page.
How to print this page to a printer?
I have to use javascript print() method?

Yup. (Well, unless you want to use Java applets controlling your
printer, but I can’t think why you would. :slight_smile: )

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

On 27 September 2010 17:05, Mauro [email protected] wrote:

A submit action shows me the show.html.erb page.
How to print this page to a printer?
I have to use javascript print() method?

Or of course the user can select File, Print in the browser.

Colin

Colin L. wrote:

On 27 September 2010 17:05, Mauro [email protected] wrote:

A submit action shows me the show.html.erb page.
How to print this page to a printer?
I have to use javascript print() method?

Or of course the user can select File, Print in the browser.

Right. The JS print() method just automates that.

Colin

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs