The issue here is that you’re trying to display something in the browser but you’re doing it in the server-side version of the scripts. If you, instead, create a new __Java__script resource from the Resources pane, then you will get exactly the same capabilities you would in your browser. If you take a look at some of the Foundation Web template wizards (such as the Jumbotron), you’ll see that the javascript resources include jQuery and some other javascript libraries: these scripts are added to the <head> tag of the generated output. This works for print and web contexts only.
Thinks of Scripts as something like node.js, or php, or ASP.net - it’s run on the server, not in the browser.
it’s a step further… but still something is wrong.
I can see the appended canvas in the output, but the code in the JavaScript file seems not to be executed.
The JavaScript file is included for the section (checkmarked there ) in Printing context; it was the default newly created template.
I am using the Preview HTML-Icon first wih IE now with FF - only can see the border of the canvas.
If you have a complete template file that works on your system, I’d be glad to get it.
Thanks in advance.
EDIT: in the console from FF I get a message saying: