how to interact with JavaScript?

Alan Stewart astewart at
Wed Apr 26 18:04:04 CDT 2000

On 26 Apr 00, at 13:39, John R. Comeau wrote:

>How does one write a program to interact with a JavaScript-based web
>page?  We have an intranet page written in JavaScript like the
>    html
>    HTTP/1.1 200 OK
>    Date: Fri, 31 Mar 2000 00:16:37 GMT
>    Server: Microsoft-IIS/4.0
>    Content-Type: text/html
>    Client-Date: Fri, 31 Mar 2000 00:16:44 GMT
>    Client-Peer:
>    Title: ARWeb 3.0.2
>    <html><head>
>    <TITLE>ARWeb 3.0.2</TITLE>
>    <SCRIPT LANGUAGE="JavaScript">
>    var CURRENT_PAGE = null;
>    var PAGES = new makeObject();
>    var PICKLIST_WIN=null;
>    function loadPickList()
>    {
>    	return PickListStr;
>    };

Are you asking how to generate and use Javascript, as some other people 
have indicated, or are you asking how to respond to someone else's 
Javascript with (perhaps) Perl?

In that page example above, the Javascript actually runs in the browser on 
your (client) machine. If you want to interact (meaning pick something from 
the picklist), you are trying to interact with another window, by emulating the 
user at the keyboard/mouse.

If you mean you retrieved this page with something like LWP and you want 
to interact with it, you can't, because it's not running anywhere. You could 
read the Javascript and figure out what it sends back and then do that in Perl.

Which of these several things are you trying for?

The posting address is: san-diego-pm-list at

List requests should be sent to: majordomo at

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at> with the following
command in the body of your email message:

    unsubscribe san-diego-pm-list

If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at> .
This is the general rule for most mailing lists when you need
to contact a human.

More information about the San-Diego-pm mailing list