PAuthor HTML Template with Javascript

Nov 14, 2010 at 10:51 AM

Is it possible to add logic into the html template using javascript, based on input values?

eg. if {Cat} == "Cars" then use some background else use another background ?? (obviously in js :p)

Apr 5, 2011 at 2:07 PM
Edited Apr 5, 2011 at 2:08 PM

I am also trying to use Javascript for creating charts within the HTML template, however PAuthor is creating images with blank pages.

I have cheked the template, which works fine when opened in Browser.

Any suggestions in this regard would be helpful.


Apr 5, 2011 at 2:24 PM

OMG .. just resolved it too.

Well was calling Javascript function ... onload earlier. Modified it to be in line code within BODY tag without any function call.

This worked.