[Freeswitch-users] pass arguments into javascript
Erwin Davis
davis.erwin at gmail.com
Wed Oct 28 19:22:33 PDT 2009
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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091028/3648c493/attachment-0002.html
More information about the FreeSWITCH-users
mailing list