Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: Javascript in Perl and retrieving the HTML source.

by bassplayer (Monsignor)
on Sep 22, 2003 at 16:26 UTC ( #293180=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Javascript in Perl and retrieving the HTML source.
in thread Javascript in Perl and retrieving the HTML source.

Besides having an extra curly brace at the end, this code might not do what you had in mind. If there is indeed JavaScript that needs interpreting, then the JavaScript module that jeffa and sgifford suggested should do the trick. However, in the code above, you are printing the URL, not the source code. Are you sure the table in question is not being retrieved? What is the purpose of the file being opened?

bassplayer

  • Comment on Re: Re: Re: Javascript in Perl and retrieving the HTML source.

Replies are listed 'Best First'.
Re: Re: Re: Re: Javascript in Perl and retrieving the HTML source.
by waiterm (Acolyte) on Sep 22, 2003 at 17:00 UTC
    Basically I need to grab the source and parse it to retrieve the availability (details in the table). When I run the print ($src); line it prints the basic html without the sections where Javascript is called, which is pretty much the section where the availability table is built into HTML. I'm pretty sure that the Javascript module should work but I know nothing about Javascript and how it works, so your advise is greatly appreciated.
      You don't really need to know JavaScript to use the module. It should be doing the interpreting for you. I've not used it myself, but between the docs and especially jeffa's example, you should be able to hack it together.

      bassplayer

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2022-08-16 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?