in reply to Re^3: How to glue JavaScript and DOM
in thread How to glue JavaScript and DOM

getElementsByTagName returns NodeList in both javascript and perl(method of HTML::DOM and other similar modules), however the formats are differents. can u please suggest me how to make the NodeList of Perl compatible with that of javascript???

Replies are listed 'Best First'.
Re^5: How to glue JavaScript and DOM
by Joost (Canon) on Feb 29, 2008 at 10:22 UTC
    If you want to glue that many objects to the javascript interpreter, I think JavaScript::SpiderMonkey is going to be a big pain in the ass. From looking at the docs, JE should be easier to use (plus, it's pure perl so it will be easier to run anywhere and probably easier to hack).

    None of the javascript modules that I know can take a random perl object and just import it into the interpreter. You will have to define the interface for all of them. With JE::Types at least it seems like you can do that with reasonable ease.