quote:
Originally posted by matty
Javascript code:
function OnGetScriptCommands(){
var oCommand = new Commands();
with (oCommand) {
oCommand.AddCommand('mycommand1', 'My command without parameter');
oCommand.AddCommand('mycommand1', 'My command with parameter', 5);
}
return oCommand.ExportCommands();
}
Shouldn't that be:
Javascript code:
function OnGetScriptCommands(){
var oCommand = new Commands();
with (oCommand) {
AddCommand('mycommand1', 'My command without parameter');
AddCommand('mycommand1', 'My command with parameter', 5);
}
return oCommand.ExportCommands();
}