Print disabling dialog box

Hello,
I need a functionality where i can print out the content on just one
click
with out dialog box alert. So is it possible with ruby on rails?

Thanks

On Mon, 2009-07-20 at 22:46 +0530, Abhishek shukla wrote:

Hello,
I need a functionality where i can print out the content on just one
click with out dialog box alert. So is it possible with ruby on rails?

This is a function of the browser, not of Rails.

In Firefox there’s a setting in about:config (you may have to manually
add the setting to prefs.js) named print.always_print_silent. It sends
print jobs directly to the default printer without the dialog.

In general, you do NOT want to do this. The alert dialog exists to
prevent DoS attacks on your network. I don’t know if / which other
browsers even allow it.

HTH,
Bill