Thanks John

I'm in a Win32 environment with IIS.

Here's what I'm trying to do:

1. I'm uploading a large file and I need a way of letting the user know that something is happening.

2. I'm using the javascript onSubmit event handler within the form to launch a web-page in another window. I don't think you can call a Perl script with this javascript event handler.

3. I want the web-page opened in the second window to run a Perl script which will try and find out the progress of the file upload and let the user know.

4. The above, of course, doesn't solve the problem of IIS timing out during a long file upload but that's another days work.

Merlyn has written a example script that uses fork to deal with the problem of monitoring long running processes but it is a Unix based script and I couldn't get it to run in a Win32 environment and I'm not even sure if it can be adapted for Win32.

Thanks

Eoin


In reply to Re: Re: (nrd) Executing Perl Script from a Web Page by Eoin Redmond
in thread Executing Perl Script from a Web Page by Eoin Redmond

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.