Subj : Add Javascript Capability to JEditorPane To : netscape.public.mozilla.jseng From : zhaobin0310 Date : Tue Jun 07 2005 11:52 am Hi, I'm really a novice with Rhino. Currently I am developing a simple web browser using JEditorPane and I need JavaScript capability. Unfortunately currently JEditorPane does not support JavaScript. After searching, I found Rhino is a JavaScript Engine. So my questions are: 1. Can I embed Rhino into my application to add JavasScript capability to JEditorPane? 2. I have tried out some simple approaches. I fed a whole html page with JavaScript but Rhino and got syntax error. Then I realized that Rhino is just a JavaScript engine, so it only takes JavaScript but not HTML, right? 3. My main purpose for the JavaScript is to do some form processing. So I plan to do: feed the JavaScript functions to the Rhino. get the parameter values from the HTML forms and feed to the JavaScript. Call the JavaScript functions and then get values from the JavaScript variables. Does this approach make sense? In the standard JavaScript in HTML, the form data can be referred as form.inputname.value. It seems Rhino does not accept this kind of nested variables. If anyone has used Rhino to add JavaScript capablity to JEditorPane, I willl appreciate it very much if you can share with me your experience. .