Is it possible to pass a parameter to exeJavascriptDirect?

Hi Clifton,
I have to display seconds in min:sec format. I can do this using the code below in exeJavacriptDirect but I don't know how to send the seconds instead of using the local variable totalSeconds
var totalSeconds = 64;
totalSeconds %= 3600;
var minutes = Math.floor(totalSeconds / 60);
var seconds = totalSeconds % 60;
if (seconds < 10)
{
seconds = "0" + seconds;
}
return minutes + ":" + seconds;
Any ideas please? I think you may have explained this to me before but I can't remember.
I have to display seconds in min:sec format. I can do this using the code below in exeJavacriptDirect but I don't know how to send the seconds instead of using the local variable totalSeconds
var totalSeconds = 64;
totalSeconds %= 3600;
var minutes = Math.floor(totalSeconds / 60);
var seconds = totalSeconds % 60;
if (seconds < 10)
{
seconds = "0" + seconds;
}
return minutes + ":" + seconds;
Any ideas please? I think you may have explained this to me before but I can't remember.