RE: ways to time a file upload?

2006-06-06 Thread 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. Except that the field will contain the client side time, which can be completely different from the serve time.

Re: ways to time a file upload?

2006-06-06 Thread Ray Champagne
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

RE: ways to time a file upload?

2006-06-06 Thread Dave Watts
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

RE: ways to time a file upload?

2006-06-06 Thread Munson, Jacob
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!

Re: ways to time a file upload?

2006-06-06 Thread Ray Champagne
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

RE: ways to time a file upload?

2006-06-06 Thread Andy Tyrone
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

RE: ways to time a file upload?

2006-06-06 Thread Andrew Tyrone
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

RE: ways to time a file upload?

2006-06-06 Thread Dave Watts
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

Re: ways to time a file upload?

2006-06-06 Thread Patric Stumpe
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

RE: ways to time a file upload?

2006-06-06 Thread Andrew Tyrone
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

RE: ways to time a file upload?

2006-06-06 Thread Kevin Aebig
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

Re: ways to time a file upload?

2006-06-05 Thread Nick Tong - TalkWebSolutions.co.uk
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

RE: ways to time a file upload?

2006-06-05 Thread Dave Watts
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

Re: ways to time a file upload?

2006-06-05 Thread Jerry Johnson
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

Re: ways to time a file upload?

2006-06-05 Thread Mark Drew
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

Re: ways to time a file upload?

2006-06-05 Thread Nick Tong - TalkWebSolutions.co.uk
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

RE: ways to time a file upload?

2006-06-05 Thread Dave Watts
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

Re: ways to time a file upload?

2006-06-05 Thread Crow T. Robot
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

RE: ways to time a file upload?

2006-06-05 Thread Andy Tyrone
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

Re: ways to time a file upload?

2006-06-05 Thread Jim Wright
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

Re: ways to time a file upload?

2006-06-05 Thread Denny Valliant
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,

Re: ways to time a file upload?

2006-06-05 Thread Claude Schneegans
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

Re: ways to time a file upload?

2006-06-05 Thread Claude Schneegans
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. --

Re: ways to time a file upload?

2006-06-05 Thread James Holmes
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