Skip to main content

Javascript parsing-Rhino (Calling functions)

2 replies [Last post]
akboim
Offline
Joined: 2009-12-28
Points: 0

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.

Thanks

Reply viewing options

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

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
akboim

csweeney
Offline
Joined: 2009-04-11
Points: 0

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.