Subj : Embedding Parameters To : netscape.public.mozilla.jseng From : gfloria@tcpsi.es (gonzalo) Date : Thu Apr 10 2003 04:49 am Hello: We are trying to interpretate JS code on a HTML page. We are using RHINO, but we need a DOM implementation. We have three questions: a) We are creating a Document object as a Scriptable object. That way we can give an implementation to the calls in JS such as document.write. The problem is we allways get a runtime error indicating wrong parameter type. How should we declare the method?? We are using public void jsFunction_write(ScriptableObject str) b) Does any one know of a good DOM implementation we could provide to RHINO, so we dont have to code all the interface?? c) So far, we know how to give an implementation to: * getting the value of a property (jsGet_ ) * calling a function (jsFunction_ ) * calling the object constructor(jsConstructor) Now, we DONT KNOW how to: * capture the setting of a property (obj.style.cursor = 'hand'; (JS code)) * handle events. How to control things like (document.onkeydown = msKeyDown;) * overloaded methods. When a method accept a variable number of parameters, how to decleare it on our ScriptableObject many thanks gonzalo .