Subj : [Q] put object to object member/array item To : netscape.public.mozilla.jseng From : Jihai Qiu Date : Sat May 03 2003 03:20 am I want to ask how to set object to some object member or array item using Scriptable::put(), context::EvaluateString() or anything else. Suppose we need to set a Java object(or a wrapper object) "xmlnode" to an JS object member myobject.current_node, or myarray[1]. That is like myobject.current_node = xmlnode; or : myarray[1] = xmlnode; or : myarray[1].current_node = xmlnode; or even : myarray[myobject.index].current_node = xmlnode; As "xmlnode" is not a JS object, it seems we can not make an assignment statement string for EvaluateString methd call. But in order to use Scriptable.put, we have to write code to parse the left hand side expression and find the proper Scriptable object. It seems it is not very easy for both object and array. So can someone please tell me how to handle this kind value setting? I think this must be a very popular issue. Thank you very much. Jay .