<?xml version="1.0" encoding="windows-1252"?>
<node id="57407" title="Re: Ra: Ru: File upload progress?" created="2001-02-09 15:48:20" updated="2005-08-14 11:33:47">
<type id="11">
note</type>
<author id="52581">
baku</author>
<data>
<field name="doctext">
&lt;p&gt; Well, that's 99% true :-) &lt;/p&gt;
&lt;p&gt; &lt;em&gt;If&lt;/em&gt; you make the assumption that the user has JavaScript (but code for the case where they don't, as well!), you could open up a new, miniature browser window (with &lt;code&gt;window.open&lt;/code&gt;) and set its URL to something like &lt;code&gt;http://www.whatever.fu/upload/upload-status?id=xxx&lt;/code&gt; with an HTTP &lt;code&gt;Refresh: &lt;/code&gt; header in that script. If you refresh every 3-5 seconds, you could display a 'status bar' and/or percentage/number of bytes/transfer speed... &lt;/p&gt;
&lt;p&gt; Just link the JavaScript to the form's &lt;code&gt;submit&lt;/code&gt; button. (Sorry, my E-262's really rusty or I'd try to offer some sample code, but I'd probably do more harm than good in this case! :-) ) -- I forget which way it goes, but if you return (true | false ? ) from your &lt;code&gt;window.open&lt;/code&gt; call in the &lt;code&gt;onClick&lt;/code&gt; (?) handler, the form won't submit, but run your code instead, so make sure to RTFM :-) &lt;/p&gt;</field>
<field name="root_node">
57335</field>
<field name="parent_node">
57357</field>
</data>
</node>
