Subj : Re: Sending Parameter (argc, argv) to a java script. To : Sterling Bates From : Brendan Eich Date : Wed Jun 02 2004 09:34 pm Sterling Bates wrote: > JS_CallFunctionName(cx, global, "myfunc", 1, OBJECT_TO_JSVAL(myarray), > @rval); > > Does that answer your question? > Careful with that Object Pascal stuff! ;-) You want, in C or C++, something like this: jsval argv[1]; argv[0] = OBJECT_TO_JSVAL(myarray); JS_CallFunctionName(cx, global, "myfunc", 1, argv, &rval); /be .