29 Oct
2009
29 Oct
'09
2:22 a.m.
Hi, new to javascript. I tried to pass two arguments into javascript, <action application="javascript" data="test.js $1 $2"/> In test.js, I tried to use argv[1] to retrieve $1 and argv[2] to retrieve $2, however, the javascript test.js complained about argv[] as undefined variables. How to retrieve the passing arguments in a javascript same as the case above. Thanks,