Forum How do I...?

javascript in prince.php

adriencater
I'm building some machinery around Prince, and am using the prince.php wrapper – but I'm getting "warning: JavaScript is disabled" errors in the log…

<javascript> in the HTML document, called via the content: prince-script(); in the CSS.

Running Prince 8.1 rev 2

There's no mention of activating javascript with the PHP wrapper, anyone have any ideas?

If not I'll muck around in the php and see what I can break
mikeday
We have now updated the Prince PHP wrapper to include new methods: setJavaScript, addScript, clearScripts, and also setSubsetFonts, for consistency with the command-line interface.
adriencater
works as advertised – thanks!
okoetter
Could you please also update the .NET wrapper accordingly?
mikeday
Yes, it will be ready shortly.
okoetter
Thanks.

BTW: How about releasing the .NET source code for the wrapper? The php source is open too...
mikeday
Certainly, it's a short module in VB.NET, we can include it in the next release.
mikeday
We have updated the Prince .NET wrapper including new methods to enable JavaScript, apply external script files, and convert multiple input documents.
okoetter
Thanks a lot!!!