From: hatespyware@... (anon luker) Date: 2004-04-29T08:34:02+09:00 Subject: rre: ActiveScriptRuby and Internet Explorer : WIN32OLE ole_methods limited? "Jerome Hauss" wrote in message news:<150401c42d17$4eb0e4d0$032f10ac@WJHAUSS2>... >With Internet Explorer and ActiveScriptRuby, the ole_methods for an >Microsoft.XMLDOM object, does not show for instance the "load" method. "Does not show" is not very descriptive. >And there's a security error when I try the load. What does "security error" mean? >Why should the load method be dangerous ? I don't know. >I would like to use RubyScript instead of JavaScript, but I cannot do >the same... Some solutions ? Solutions to what? Please post some code. >(and calling WIN32OLE ole_get_methods or ole_func_methods stops >executing a RubyScript defined method...?) That sounds possible - multithreading in Ruby is counterintuitive. I'm not going to speculate further without seeing some code. >PS. Is it a bad idea to marshal and unmarshal objects sent between the >navigator and the server ? What do you have in mind? fyi, this works for me: $ cat ./test.rb #!/usr/bin/ruby require 'win32ole' p xd = WIN32OLE.new('Microsoft.XMLDOM') puts '_'*40 p xd.ole_obj_help puts '_'*40 p xd.ole_methods puts '_'*40 p xd.load('C:\Program Files\tv\xmltv-0.5.24-win32\guide.xml') puts '_'*40 p xd.readyState puts '_'*40 puts xd.lastChild.lastChild.text.inspect $ ruby -v ruby 1.8.0 (2003-08-04) [i386-mswin32] $ ./test.rb # _______________________________________________________________________ IXMLDOMDocument2 _______________________________________________________________________ [QueryInterface, AddRef, Release, GetTypeInfoCount, GetTypeInfo, GetIDsOfNames, Invoke, nodeName, nodeValue, nodeValue, nodeType, parentNode, childNodes, firstChild, lastChild, previousSibling, nextSibling, attributes, insertBefore, replaceChild, removeChild, appendChild, hasChildNodes, ownerDocument, cloneNode, nodeTypeString, text, text, specified, definition, nodeTypedValue, nodeTypedValue, dataType, dataType, xml, transformNode, selectNodes, selectSingleNode, parsed, namespaceURI, prefix, baseName, transformNodeToObject, doctype, implementation, documentElement, createElement, createDocumentFragment, createTextNode, createComment, createCDATASection, createProcessingInstruction, createAttribute, createEntityReference, getElementsByTagName, createNode, nodeFromID, load, readyState, parseError, url, async, async, abort, loadXML, save, validateOnParse, validateOnParse, resolveExternals, resolveExternals, preserveWhiteSpace, preserveWhiteSpace, onreadystatechange, ondataavailable, ontransformnode, namespaces, schemas, validate, setProperty, getProperty, GetTypeInfoCount, GetTypeInfo, GetIDsOfNames, Invoke] _______________________________________________________________________ true _______________________________________________________________________ 4 _______________________________________________________________________ "Outside the Lines Nightly Sports Info"