SynopsisSet the value of a JavaScript variable Prototype#include "ej.h" int ejEval(int eid, char_t *script, char_t **errorMessage); Parameters
DescriptionThe ejEval procedure evaluates a JavaScript script. If the script fails, a text message describing the error is returned in errorMessage. This message is dynamically allocated and must be freed using bfree. Return ValueReturns 0 if successful. Returns -1 on errors. Examplechar_t *emsg; ejEval(eid, "write('Hello World');", &emsg); See Also |