Simon Dorfman
2006-Oct-13 19:15 UTC
[Instiki-devel] javascript to make print view open print dialog
Hello, This is my first time posting to this list. If there is somewhere else I should be submitting this, please let me know. http://instiki.org/show/HowToContribute is giving me a Bad Gateway error. I added a little javascript so that whenever the print view is rendered, a print dialog will open. Here''s how: In this file: instiki/app/views/wiki/print.rhtml ...add these three lines to the end: <script language=javascript> if (window.print) window.print(); </script> That''s it. Simon -- Simon Dorfman - Video Editor - NOA-TV simon at noatv.com (504) 483-3305 Fax (504) 304-7324 New Orleans Access Television 1025 S. Jefferson Davis Parkway Suite B New Orleans, LA 70125 http://noatv.com/