Hello,
Im currently attempting to implement a "Cancel" button for a cgi upload script in case the upload needs to be aborted. I've searched google for the past few days and can't find anything on how to stop a running cgi script.
I implemented a method I thought would work, but it doesn't seem to stop the CGI script. I am using the Extjs framework, so when I call my upload cgi script, the target is set to a hidden Iframe. I was able to use Extjs to grab the hidden iframe during the upload, call the stop method on its page, and remove the Iframe, yet the CGI script still manages to upload the whole file. I've verified with Firebug that the iframe is in fact being deleted when I hit the cancel button.
I looked for how to stop a form sumbit() call, but all I could find was form validation stuff, which I don't want. I also thought passing a 'cancel' flag to the running upload script would work, but I don't know how to pass anything to a RUNNING cgi script, if that's even possible. Finally, I thought I could have the cgi script periodically check for a cancel button push or something, but I couldn't find anything on that either.
Any help would be greatly appreciated.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.