Integrated Application Platform › Forums › General › Javascript calling Suneido function › Re: Re: Javascript calling Suneido function
July 14, 2012 at 9:31 pm
#926
Participant
I am using the suneido://eval? protocol, but I can’t get it to assign the result to a variable. The only reference in the documentation I see is an example which shows:
function openHelp()
{
document.location="suneido:/eval?OpenBook('HelpBook', 'PageName')";
}
This works for calling functions that do not return any result. But when it returns a result, I can’t assign it to a variable. I tried:
var x=suneido:/eval?TestingJS();
but it fails, and when I use:
var x="suneido:/eval?TestingJS();"
it only assigns the string, and no call is made. I’m new to most of Javascript, so I probably got the syntax wrong.