Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: javascript interpreter in perl???

by gam3 (Curate)
on Feb 06, 2008 at 04:44 UTC ( #666469=note: print w/ replies, xml ) Need Help??


in reply to javascript interpreter in perl???

Note that an interpreter is not all you need to solve this problem. You need to have a DOM as well.

Depending on what you want to do this can be hard or easy.

-- gam3
A picture is worth a thousand words, but takes 200K.


Comment on Re: javascript interpreter in perl???
Replies are listed 'Best First'.
Re^2: javascript interpreter in perl???
by monkster (Sexton) on Feb 06, 2008 at 06:13 UTC
    Can you please tell me how to get a DOM for working on the web page??
    I tested the JE module and it was able to solve javascripts.. but I not sure how to test it connected with a web page.. i mean, the module was able to solve simple scripts like
    function xxx() { return 42; }

    but i do not know how to test it for scripts that access the DOM. for example. the script has statements like document.getElementByID etc. how do i create the handle of the retrieved web page as 'document'..

    can u please suggest me on this..
      If you really want all of this to be in perl it is quite a hard problem requiring javascript and perl code.

      You might want to look at HTML-DOM, but there is still a lot of glue needed to tie it all together.

      -- gam3
      A picture is worth a thousand words, but takes 200K.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://666469]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (16)
As of 2015-07-31 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (282 votes), past polls