in reply to Re: Executing Javascript from HTML pages in perl
in thread Executing Javascript from HTML pages in perl

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.
  • Comment on Re: Re: Executing Javascript from HTML pages in perl

Replies are listed 'Best First'.
Re^3: Executing Javascript from HTML pages in perl
by Aristotle (Chancellor) on Nov 06, 2002 at 23:29 UTC
    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.
        Right, but what does it do? You can't save anything locally using Javascript; if you want to permanently affect anything you have to eventually invoke something on the server - and at that point, LWP can be plugged in.

        Makeshifts last the longest.

Re: Re: Re: Executing Javascript from HTML pages in perl
by Mr. Muskrat (Canon) on Nov 07, 2002 at 14:26 UTC

    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.

        That's true, javascript does have other uses... I still don't see why it would be necessary to run a client-side javascript when the same result could be accomplished within the LWP script that the OP is trying to work on.