Skip to main content

Javascript parsing-Rhino (Calling functions)

2 replies [Last post]
Joined: 2009-12-28

Hi all
Im trying to parse javascript using rhino.

I've to do a poc.

There are two or more javascript functions coded in a .js file.
I want to know is there any api in rhino which takes the function name and arguments as the parameter and executes that particular function.

I tried with Function::call() but this won't take function name as the parameter.

Can anyone hellp me in this.
Waiting for the reply.


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2009-12-28

Hi in short i want to know
how to invoke a javascript function from java using rhino.

Please let me know if you have any suggestions.

Thank you

Joined: 2009-04-11

This forum is for OpenCable oriented information - questions about javascript should be asked in an appropriate forum. OpenCable has no javascript capability and has nothing to do with Rhino. Please find another resource.