[DUG] HTTP Upload Progress
Conor Boyd
Conor.Boyd at trimble.co.nz
Thu Sep 18 10:53:15 NZST 2008
Why everybody's obsession with forms/webpages?
HTTP as a protocol has nothing specific to do with forms/pages/javascript.
There's no reason why native code can't talk HTTP. Indeed, a lot of the Indy components are for just that purpose, and I even provided an example of HTTP upload progress in native code.
This is the Delphi list, after all. :-Þ
Just curious...
C.
-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On Behalf Of Neven MacEwan
Sent: Thursday, 18 September 2008 10:35 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] HTTP Upload Progress
Jeremy
You could do it in Javascript reltively simply ||||||||||||| makes a decent progress bar, I have never got into graphics with JS though its would be relatively simple to resize a <div> as a progress bar
This is the Ajax Tool I use WWW: http://www.AjaxToolbox.com/
HTH
Neven
> yeah there is a bit of stuff around done in Java, but the last thing
> we need to have to do is explain to people how to install java. The
> same for flash, which is why I was heading in the native code direction.
>
> Jeremy
>
> ----------------------------------------------------------------------
> --
> *From:* delphi-bounces at delphi.org.nz
> [mailto:delphi-bounces at delphi.org.nz] *On Behalf Of *Richard Vowles
> *Sent:* 18 September 2008 05:46
> *To:* NZ Borland Developers Group - Delphi List
> *Subject:* Re: [DUG] HTTP Upload Progress
>
> The way I implemented this (in a Java web server) was that once the
> form was submitted, an ajax request was fired off in the background
> and repeatedly asked the server how the file upload was progressing,
> and updated the amount of colour in a progress bar. The upload was
> attached to the session, so the ajax call was able to grab the info
> structure from the session and query it (as the file upload specifies
> how big something is and as the upload is happening, you can just
> specify in the structure how much you had received).
>
> 2008/9/17 Jeremy Coulter <jscoulter at gmail.com
> <mailto:jscoulter at gmail.com>>
>
> Hi Al, sorry this is a repeated post, as I have not received any
> emails from the list in a week, then I got an email to reconfirm
> my email address because the emails were meant to be
> bouncing....which is strange because its my main email address and
> I have been getting emails ok....anyway using gmail now.
> So, here is my post again. Appologies if its already been answered.
>
> Hi All.
> I am wondering if anyone has seen or has any Delphi code that will
> do an http file upload, BUT that shows you the upload progress.
> I have looked at the Synapse code for doing this, but it doesn't
> have the ability to show the progress.
> Why use HTTP File upload and not FTP? simple answer, not every
> site has FTP enabled...as we have found out, and email has been a
> bit unreliable.
> I have taken a look at the odd Java plugin that does this which
> would be good because I could just have my app. look at a webpage
> instead of build it into the exe, but then, no guarantees that
> java is enabled either....sigh...the joys :-(
> OR someone might even have a brighter idea ;-)
>
> Jeremy
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz <mailto:delphi at delphi.org.nz>
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz
> <mailto:delphi-request at delphi.org.nz> with Subject: unsubscribe
>
>
>
>
> --
> ---
> Richard Vowles, Technical Advisor
> Developers Inc Ltd
> web. http://www.developers-inc.co.nz
> ph. +64-9-3600231, mob. +64-275-467747, fax. +64-9-3600384 skype.
> rvowles, LinkedIn, Twitter
>
>
> ----------------------------------------------------------------------
> --
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with
> Subject: unsubscribe
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
More information about the Delphi
mailing list