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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to