Okay, so I had to use a wee bit of javascript. I'm not happy about it. I'm seeking counseling for it. Do you know of a good doctor?

Anywho, I got a minimal case working. I'm storing session information with a PostgreSQL database using a random 10 alphanumerics for session_id, so I decided to use the session_id as temporary filename and to rename the file after upload was completed. When a user hits "Upload" there is an OnClick setting that will open a new window( the javascript, it leaves a funny smell on my clothing! ) which due to its title( inventively: /upload/progress ) and some params tacked onto it, gives the progress handler all the information it needs. Every three seconds the window reloads, -s'ing the session_id which is a filename. Currently, I haven't played around enough to see if I can get the total size of the file before hand so I can produce a percentage or a keen little graph. This leads me to the conclusion that a progress bar is highly possible. Maybe my hack isn't the most inventive or pretty thing in the world. However, I'm far from being one of the better perl hackers on this board and I'm sure someone could come up with a more elegant way of doing this. Again, impossible is not a word that perl takes lightly.

Everyone has their demons...you just happen to be.

In reply to Re: Yet another progress bar ... progress report. by Macphisto
in thread Yet another progress bar. by Macphisto

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.