From:  "Meandron" <Matthias.Igel@gmx.net>
Date:  14 Jul 2006 22:24:56 Hong Kong Time
Newsgroup:  news.mozilla.org/netscape.public.mozilla.jseng
Subject:  

Re: Load global functions from js file for later use in evaluateString calls

NNTP-Posting-Host:  212.204.68.178

Hi Mike,

I don't know if it works (as I never tried it myself), but perhaps you
could use compileFunction(see API for params), which is a method of
Context objects and returns a Function object.

Using that Function object you then can call call(again see API for
params).
It's possible to set parameters to the function you want to call.

Hope, this is useful to you!

Greetings,
Matthias

P.S. The Rhino- newsgroup switched to mozilla.dev.tech.js-engine. In
order to get your postings read, you should think about a switch, too
:-).