in reply to Perl application to read the current browser page

You should probably look at Javascript rather than Perl. Perl programs associated with websites are (almost?) always CGI programs which run on the web server, not on the computer used to view the site, so they know nothing about cursor positions and the like, and only run when the page is loaded. Javascript runs in the browser used to view the site. Bear in mind that quite a few people have javascript turnd off in their browsers, and won't see whatever it is you are trying to do, so make sure that the information is available in some other way.

Update: after reading BrowserUK's post below I wonder if it was me who mis-interpreted what you are trying to do. Are you trying to write a website which will do this in people's browsers when they look at it or are you trying to write a program for use on your computer which you will use when you look at other people's websites?

  • Comment on Re: Perl application to read the current browser page

Replies are listed 'Best First'.
Re: Re: Perl application to read the current browser page
by barrd (Canon) on Jul 18, 2003 at 11:11 UTC
    As well as JavaScript you probably want to have a look at these links for DHTML (Dynamic HTML).
Re: Re: Perl application to read the current browser page
by Anonymous Monk on Jul 19, 2003 at 08:57 UTC
    SO do u say that this application can't be done in perl at all.
      I won't say it is impossible.

      I will say that if your Perl is running on a Unix server and you are trying to get that fine of control over a remote Windows machine then one of three things should be true:

      1. Your client-side logic is running on your client's machine (probably in Java or JavaScript).
      2. Your client is running a custom application which gives you more power over them than a browser provides.
      3. You have broken into your client's machine using techniques which their system administrator should not be happy about.
      These are listed in increasing order of difficulty. Perl could be used to do any of them, but is not necessarily the most appropriate language to use. Implementing any of them requires knowledge of how to manipulate the client-side which is highly OT for this site.