Pass variables to javacript

approg Community Member Posts: 258 ♪ Opening Act ♪
I'm creating a javascript function and I want to pass, as arguments, some Lectora variable values to it. I've built the string like this (into a custom variable called 'str'):javascript:myFunc(VAR(CurrentSectionName),VAR(PagesInSection),VAR(PageInSection))but when I call it from Lectora with VAR(str) I get javascript errors. In the index.htm page that is created the offending bit of code looks like this:function action88(fn){    Vartmp.set(myFunc();     if(fn) eval(fn);}How do I pass Lectora variables as arguments for a javascript function?Andrew Poulos