Subj : dereferenced object To : netscape.public.mozilla.jseng From : "Thibaut" Date : Fri Apr 16 2004 06:42 pm I'm implementing the dom with spidermonkey. i wrote the function specified below and it works fine but i have a problem this function is applied to a childNodes object. when i want to call item, i write: childNodes.item(my_index) and it returns me the element at the index "my_index". childNodes is an object with the property "liste" which is an ArrayObject this is my question : i want that when i write childNodes[my_index] it does the same job as childNodes.item(my_index) How can i do that in spidermonkey ?? ////////////////////////////// item(index) This method returns a Node object. The index parameter is of type Number. Note: This object can also be dereferenced using square bracket notation (e.g. obj[1]). Dereferencing with an integer index is equivalent to invoking the item method with that index. .