Copy link to clipboard
Copied
Hi Guys
I have added a print button and added the java script window.print(); unfortunately the result I get when I preview is this:
Not a java script expert so I don't know what I need to do here. Has anyone ever got this and if so how do you print?
Seen successful printing in demonstrations on YouTube but just doesn't work for me. Any ideas?
Thanks a lot.
You're using one of the preview options that publishes only to SWF and that is disabling the JavaScript.
Use one of the other options such as Preview in Browser and see whether that works better for you. Alternatively, publish your project out to your local hard drive and then run the HTM file in your web browser. As long as Flash Global Security is set up on your system to trust that folder location you should find that the JavaScript works.
Another alternative is to upload your published conten
...Copy link to clipboard
Copied
Javascript to be executed needs to run in a web browser. That means that the simple Preview methods, which exist for a normal project and are Flash-based will not show the result of JS. You need to use either F11 = Preview HTML in Browser for HTML output or F12 = Preview in Browser for SWF output.
Copy link to clipboard
Copied
You're using one of the preview options that publishes only to SWF and that is disabling the JavaScript.
Use one of the other options such as Preview in Browser and see whether that works better for you. Alternatively, publish your project out to your local hard drive and then run the HTM file in your web browser. As long as Flash Global Security is set up on your system to trust that folder location you should find that the JavaScript works.
Another alternative is to upload your published content to a web server or LMS (e.g. SCORM Cloud) and test it from there.
Copy link to clipboard
Copied
Thanks for all your replies.
Uploading to SCORM resolved the problem.
Thanks again.