How about a hidden form field that gets populated with the current
date/time
on form submission? Then you could parse it and compare it
to Now() on your
action/upload page.
Except that the field will contain the client side time, which can be
completely different from the serve time.
I went ahead with the cookie method via javascript, which fires off when
the user clicks the Submit button. Seems to be a good ballpark
estimate of how long the process took. It never needed to be spot-on,
just an estimate. Works out just fine. Thanks for all the great ideas!
Munson, Jacob
How about a hidden form field that gets populated with the
current date/time on form submission? Then you could parse
it and compare it to Now() on your action/upload page.
There are two minor caveats to this approach. First, you don't know how long
the user will spend on the form before
I went ahead with the cookie method via javascript, which
fires off when
the user clicks the Submit button. Seems to be a good ballpark
estimate of how long the process took. It never needed to be
spot-on,
just an estimate. Works out just fine. Thanks for all the
great ideas!
Yes, I am using JS on the landing page to get the time difference, and
the time is not really being stored anywhere, it's just for the peace of
mind of the client. So, I just output that value on the landing page as
in file qwerty.pdf took xxx seconds to upload. The client now has a
How about a hidden form field that gets populated with the
current date/time on form submission? Then you could parse
it and compare it to Now() on your action/upload page.
There are two minor caveats to this approach. First, you
don't know how long
the user will spend on the form
How about a hidden form field that gets populated with the
current date/time on form submission? Then you could parse
it and compare it to Now() on your action/upload page.
There are two minor caveats to this approach. First, you
don't know how long
the user will spend on the form
Yeah, I didn't think about the client/server time difference,
although using JavaScript to get the time on the action page
after the file upload would work without any time-offset
calculations.
However, using JavaScript on the action page would mean that you would be
including the
Well after browsing this thread I thought if it would be possible to
connect the submit button to an XMLHttpRequest which triggers a
session var for the starting of the upload and after processing the
upload you take another timestamp and could calculate with that.
Stupid idea?
Yeah, I didn't
Well after browsing this thread I thought if it would be possible to
connect the submit button to an XMLHttpRequest which triggers a
session var for the starting of the upload and after processing the
upload you take another timestamp and could calculate with that.
Stupid idea?
No, I was
Flash Upload form. Easy, fast and accurate. Check out Google for example
scripts that you can plug-in if you don't have CF7 and Flash forms.
Also, think about doing some client side stats to check for other potential
issues.
Cheers,
!k
-Original Message-
From: Ray Champagne
if you're using cf7 then try cftimer.
an example of it's use can be seen here:
http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:4/threadid:42894#221858
On 05/06/06, Ray Champagne [EMAIL PROTECTED] wrote:
Is there a way that I can figure out how long a file upload takes?
I have a
if you're using cf7 then try cftimer.
The CFTIMER tag is just an alternative to GetTickCount. Neither one will
tell you how long a browser takes to send an HTTP request to the server,
which is all that a file upload is.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf
There are two different times you are dealing with.
Server processing time.
User perceived time.
You can accurately measure the server processing time easily using cold fusion.
grab the startTick at the top of your page.
grab the endTick at the end of your page.
display the difference as load
You could probably use a javascript timer? you could do one page that
sets a cookie (via javascript) with a (local) timestamp when they
clicked the upload, then when you get the confirmation page you could
make the javascript read that cookie and submit (via ajax style
thing) along with
If you put the time into the request scope at the start at the request and
then again at the end of the page request then you can determine the time
difference between the 2 counts can you not??
On 05/06/06, Dave Watts [EMAIL PROTECTED] wrote:
if you're using cf7 then try cftimer.
The
If you put the time into the request scope at the start at
the request and then again at the end of the page request
then you can determine the time difference between the 2
counts can you not??
No. The Request scope only lasts for a single request. By the time the
Request scope is
I like this idea. It's not perfect, but it should do what I'm trying to
get it to. I think.
Mark Drew wrote:
You could probably use a javascript timer? you could do one page that
sets a cookie (via javascript) with a (local) timestamp when they
clicked the upload, then when you get the
I like this idea. It's not perfect, but it should do what
I'm trying to
get it to. I think.
Mark Drew wrote:
You could probably use a javascript timer? you could do one
page that
sets a cookie (via javascript) with a (local) timestamp when they
clicked the upload, then when
On 6/5/06, Crow T. Robot [EMAIL PROTECTED] wrote:
I like this idea. It's not perfect, but it should do what I'm trying to
get it to. I think.
Mark Drew wrote:
You could probably use a javascript timer? you could do one page that
sets a cookie (via javascript) with a (local) timestamp
On 6/5/06, Crow T. Robot [EMAIL PROTECTED] wrote:
I like this idea. It's not perfect, but it should do what I'm trying to
get it to. I think.
It's what I use a couple of places. You'd be amazed how far an
animated gif will get you. People really just like to feel they're
still connected,
I've tried wrapping the cffile tag with getTickCount(), but the number
there is ridiculously small, so I'm assuming that it's only telling me
how long it takes to process that tag, not the actual upload itself.
I think you are assuming right, since when the template is executed, the
file is
How about a hidden form field that gets populated with the current
date/time
on form submission? Then you could parse it and compare it to Now() on your
action/upload page.
Except that the field will contain the client side time, which can be
completely different from the serve time.
--
This is easier with a flash file upload control:
http://www.asfusion.com/blog/entry/file-upload-with-coldfusion-flash-forms
On 6/6/06, Denny Valliant [EMAIL PROTECTED] wrote:
On 6/5/06, Crow T. Robot [EMAIL PROTECTED] wrote:
I like this idea. It's not perfect, but it should do what I'm
24 matches
Mail list logo