javacript to print irame
October 22, 2007 12:00 AM
Using Lectora 2007, publishing to SCORM 2004 and launching courses within our LMS (SLK) we are having a slight problem with printing course content. We have a print action on each page of our modules to allow users to print the current page of content. When clicked on, this action launches the print dialogue box. If the user simply prints, we end up with this:If the user selects "Only the selected frame" we get this:which is what we want.The code in the published course that calls the print function is this:}function action2804(fn){ window.print(); if(fn) eval(fn);}I'm thinking we could use some sort of javascript instead to force the function to print the iframe containing the course content, rather than the whole window, but I'm not sure how to implement this, where the code should go, or how to identify the iframe of the course content.Any ideas?
Discussions have been disabled for this post