Sorry not to reply sooner for you.
I'm not sure we are following exactly what you are doing. Can you post the
javascript and the code you are using to execute it?

A simple JS file such as (taken from the documentation example):

function f(x){return x+1} f(7)

should have no problem. What exception are you seeing? I imagine it is
unrelated to the fact that you have 2 functions defined in your javascript
and more likely due to some problem the JS its self (but that's just a blind
guess until we see what you see).

David


-----Original Message-----
From:
dev-tech-js-engine-rhino-bounces+davidparks21=yahoo....@lists.mozilla.org
[mailto:dev-tech-js-engine-rhino-bounces+davidparks21=yahoo....@lists.mozill
a.org] On Behalf Of javame_android
Sent: Monday, October 05, 2009 7:33 PM
To: [email protected]
Subject: Re: Parsing Javascript using Rhino?

Hi,

I have managed to parse Javascript file. But, now the problem is that
it parses the file with only function in it. If there are two methods
or function in the Javascript file then it throws an exception.

So, can anyone let me know which method to call so that we provide the
method name and then that method of Javascript should be parsed and
result returned.

Hope to get a reply soon.


Thanks & Regards
Sunil
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino



_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to