in reply to Executing Javascript from HTML pages in perl

That all depends on why the javascript was included in the HTML. So take a good, long look at that javascript and ask yourself: Do I really need this? If your answer is yes, then provide the same functionality in your Perl script.

  • Comment on Re: Executing Javascript from HTML pages in perl

Replies are listed 'Best First'.
Re: Re: Executing Javascript from HTML pages in perl
by jryan (Vicar) on Nov 06, 2002 at 22:14 UTC
    And what if the javascript happens to be DOM manipulation (i.e. the stylesheet maninipulation I use in Text::ParagraphDiff output), or a form checker? Not everything javascript can do can be mimicked with perl.
      But in which way would that make it not possible to mimick the GET/POST requests a user agent would eventually send?

      Makeshifts last the longest.

        In the case where the code needs to run on the client side.

      But who uses stylesheets or DHTML in an LWP script?

        What about JavaScript's other uses? The guy never said that the JavaScript was DHTML; I was trying to bring up the point that JavaScript DOES have other uses besides poorly done client-side dynamic content.