From: Liorean Date: 2002-04-04T22:39:00+09:00 Subject: Some ActiveRuby/RubyScript questions Greetings! I'm trying to convert some code from JScript to RubyScript to take advantage of the Ruby iterators, but found some problems with things behaving differently in JScript and VBScript compared to RubyScript. Can someone please explain to me how you list the children of an object, corresponding to JScript: var a=[]; for(var i in window)a.push(i); So that a is an array containing the names of the children of the object (window in the example, but it might be anything.) Also, I'd like to know how to detect whether a property of an object exists or not, something of the kind: if(typeof document.all!='undefined'){/* some action or other... */} TIA, // Liorean