Re: Progress Bar for file upload and process loop.

2009-02-24 Thread Tony Bentley

You could probably figure out a way to calculate processing time based on 
connection speed. For uploading files, there is nothing except client side 
plugins or flash that will calculate the file size being uploaded and how much 
of the file has been transferred. 

The best example I have found is Laura's Flash file uploader with a progress 
bar:

http://www.asfusion.com/blog/entry/file-upload-with-coldfusion-flash-forms 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319750
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Progress Bar for file upload and process loop.

2009-02-24 Thread Jake Churchill

That's a nice one but I prefer the multiple file uploader example here:

http://weblog.cahlan.com/2006/12/flex-upload-component.html

It's not quite as pretty but it's way more functional.  If you have 
flexbuilder you can easily open the project and skin it differently.

-Jake

Tony Bentley wrote:
 You could probably figure out a way to calculate processing time based on 
 connection speed. For uploading files, there is nothing except client side 
 plugins or flash that will calculate the file size being uploaded and how 
 much of the file has been transferred. 

 The best example I have found is Laura's Flash file uploader with a progress 
 bar:

 http://www.asfusion.com/blog/entry/file-upload-with-coldfusion-flash-forms 

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319751
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Progress Bar

2002-06-12 Thread Philip Arnold - ASP

 Anyone have a nice progress bar?

Simplest way;
Have a JavaScript function which draws a bar (named image)
When you move the progress on, output a quick JavaScript bit of code
calling said function, then CFFLUSH

That should do it for you

In Netscape you might have to play with iFrame or similar, but in IE you
can just replace some content in a SPAN or DIV

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress Bar

2002-06-12 Thread Neil Clark - =TMM=

Steve Drucker did one, you can find it here.

http://www.cfugorama.com/cfugorama/codelibrary/Progress-Bar.cfm







-Original Message-
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]] 
Sent: 12 June 2002 18:41
To: CF-Talk
Subject: RE: Progress Bar

 Anyone have a nice progress bar?

Simplest way;
Have a JavaScript function which draws a bar (named image)
When you move the progress on, output a quick JavaScript bit of code
calling said function, then CFFLUSH

That should do it for you

In Netscape you might have to play with iFrame or similar, but in IE you
can just replace some content in a SPAN or DIV

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**



__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress Bar

2002-06-12 Thread Raymond Camden

There is an article on this here:
http://www.macromedia.com/v1/handlers/index.cfm?id=21216method=full

===
Raymond Camden, ColdFusion Jedi Master for Macromedia

Email: [EMAIL PROTECTED]
Yahoo IM : morpheus

My ally is the Force, and a powerful ally it is. - Yoda 

 -Original Message-
 From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, June 12, 2002 1:41 PM
 To: CF-Talk
 Subject: RE: Progress Bar
 
 
  Anyone have a nice progress bar?
 
 Simplest way;
 Have a JavaScript function which draws a bar (named image)
 When you move the progress on, output a quick JavaScript bit of code
 calling said function, then CFFLUSH
 
 That should do it for you
 
 In Netscape you might have to play with iFrame or similar, 
 but in IE you
 can just replace some content in a SPAN or DIV
 
 Philip Arnold
 Technical Director
 Certified ColdFusion Developer
 ASP Multimedia Limited
 Switchboard: +44 (0)20 8680 8099
 Fax: +44 (0)20 8686 7911


__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress Bar

2002-06-12 Thread Matthew R. Small

What kind of progress bar did you want?  Something that actually tells
you the actual amount of work done or a processing bar, just something
to look at when the code is executing?  I have the latter, a flash
movie, if you want to use it.

- Matt Small

-Original Message-
From: phumes1 [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 12, 2002 1:34 PM
To: CF-Talk
Subject: Progress Bar

Anyone have a nice progress bar?


__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress Bar

2002-06-12 Thread phumes1

Sure...I wouldn't mind having a look at your flash movie.

Thanks

At 03:48 PM 6/12/2002 -0400, you wrote:
What kind of progress bar did you want?  Something that actually tells
you the actual amount of work done or a processing bar, just something
to look at when the code is executing?  I have the latter, a flash
movie, if you want to use it.

- Matt Small

-Original Message-
From: phumes1 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 1:34 PM
To: CF-Talk
Subject: Progress Bar

Anyone have a nice progress bar?



__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress bar

2001-02-01 Thread Ben Forta

John, there is no real clean way to do this now (lots of kludges though). As
I demonstrated at the Developer's Conference, CF5 has a new tag called
CFFLUSH that does exactly what you want. And CF5 starts beta pretty soon.

--- Ben


-Original Message-
From: John Anderson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 6:00 PM
To: CF-Talk
Subject: Progress bar


Has anyone here implemented a progress bar.

Similar to what happens on expedia when searching for travel information.

What is the key to this with a web based app?

Thanks,
John Anderson
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress bar

2001-02-01 Thread ron

 I demonstrated at the Developer's Conference, CF5 has a new tag called
 CFFLUSH that does exactly what you want
  ^
  |
  |_ yeah baby! That cures some of my ASP-envy. :)

thanks for the info, Ben!

-ron




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress bar

2001-02-01 Thread Raymond B.

Expedia uses the IE specific document.readyState and a timer calling the
function (Javascript).

Both the initial search criteria and the "Please wait" section are on the
same page. When you begin the search it hides the one part and displays the
"Please wait" part. A timer is started and it periodically changes the image
(for the "status bar" look) and checks the document.readyState of the
loading page. When the document.readyState == 'completed' it switches over
to it. It's not technically a progress bar as much as a "Please wait" page,
the movement of the image is in no way tied into how far along the search
is.

HTML overall isn't well suited to the task, the basic premise of HTML stops
any server involvement once the page is sent. Java applets, Flash, or
anything else that can either maintain a persistant connection to the server
or change content without a page reload are much more suited; these of
course have their own drawbacks.

I can think of a few work arounds that are a bit more cross-browser
compliant but none of them are pretty.

-Original Message-
From: John Anderson [mailto:[EMAIL PROTECTED]]
Sent: January 31, 2001 18:00
To: CF-Talk
Subject: Progress bar


Has anyone here implemented a progress bar.

Similar to what happens on expedia when searching for travel information.

What is the key to this with a web based app?

Thanks,
John Anderson
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress bar

2001-02-01 Thread Joby Bednar

I did it in a rather simple way... doing it by creating a hidden layer that
has a "bar" (a graphic, button, etc.) in it.  Create a function in
Javascript that shows the layer when you click something.  The function
alters the size of the bar as time passes, say every 10th of a second.  When
the browser finally loads the next page, the whole thing disappears.  The
nice thing about it is that it acts like a popup status window rather than a
whole other page, and you can figure out the timing so if it ever reached
the end, the browser would normally timeout.  The bad thing about it is that
you would have to have every page call the script and have the layer in it
and have each link call the function, but that's not too big of a deal.

Joby Bednar
Director of Internet Design
iNEOgroup.com


-Original Message-
From: John Anderson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 3:00 PM
To: CF-Talk
Subject: Progress bar


Has anyone here implemented a progress bar.

Similar to what happens on expedia when searching for travel information.

What is the key to this with a web based app?

Thanks,
John Anderson
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress bar

2001-02-01 Thread Andrew Scott

Can I ask how you invoked the layer switch?

I am assuming on loosing the focus of the window, but I guess you could have
also used the events handlers!


-Original Message-
From: Joby Bednar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 1 February 2001 12:55 PM
To: CF-Talk
Subject: RE: Progress bar


I did it in a rather simple way... doing it by creating a hidden layer that
has a "bar" (a graphic, button, etc.) in it.  Create a function in
Javascript that shows the layer when you click something.  The function
alters the size of the bar as time passes, say every 10th of a second.  When
the browser finally loads the next page, the whole thing disappears.  The
nice thing about it is that it acts like a popup status window rather than a
whole other page, and you can figure out the timing so if it ever reached
the end, the browser would normally timeout.  The bad thing about it is that
you would have to have every page call the script and have the layer in it
and have each link call the function, but that's not too big of a deal.

Joby Bednar
Director of Internet Design
iNEOgroup.com


-Original Message-
From: John Anderson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 3:00 PM
To: CF-Talk
Subject: Progress bar


Has anyone here implemented a progress bar.

Similar to what happens on expedia when searching for travel information.

What is the key to this with a web based app?

Thanks,
John Anderson
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress bar

2001-02-01 Thread Philip Arnold - ASP

 John, there is no real clean way to do this now (lots of kludges
 though). As
 I demonstrated at the Developer's Conference, CF5 has a new tag called
 CFFLUSH that does exactly what you want. And CF5 starts beta
 pretty soon.

Just a question on CFFlush - can it be used at any time, or multiple times
in a template?

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress bar

2001-02-01 Thread Ben Forta

Yes, and yes - as many times as you want. The CFFLUSH tag flushes the
current ColdFusion output buffer to the web server, which then sends it back
to the client. The first instance of the CFFLUSH tag on a page sends back
all of the HTML headers as well. Subsequent CFFLUSH tags send the output
buffered only since the previous flush.

--- Ben



-Original Message-
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 5:44 AM
To: CF-Talk
Subject: RE: Progress bar


 John, there is no real clean way to do this now (lots of kludges
 though). As
 I demonstrated at the Developer's Conference, CF5 has a new tag called
 CFFLUSH that does exactly what you want. And CF5 starts beta
 pretty soon.

Just a question on CFFlush - can it be used at any time, or multiple times
in a template?

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress bar

2001-02-01 Thread Adam Reynolds

Damm, ain't gonna work with Fusebox :(

Explanation: Fusebox works by processing the content of the page then,
displaying the layout around it after the content has been completed.  :(

-Original Message-
From:   Ben Forta [SMTP:[EMAIL PROTECTED]]
Sent:   Thursday, February 01, 2001 11:36 AM
To: CF-Talk
Subject:RE: Progress bar

Yes, and yes - as many times as you want. The CFFLUSH tag flushes the
current ColdFusion output buffer to the web server, which then sends it
back
to the client. The first instance of the CFFLUSH tag on a page sends back
all of the HTML headers as well. Subsequent CFFLUSH tags send the output
buffered only since the previous flush.

--- Ben



-Original Message-
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 5:44 AM
To: CF-Talk
Subject: RE: Progress bar


 John, there is no real clean way to do this now (lots of kludges
 though). As
 I demonstrated at the Developer's Conference, CF5 has a new tag called
 CFFLUSH that does exactly what you want. And CF5 starts beta
 pretty soon.

Just a question on CFFlush - can it be used at any time, or multiple times
in a template?

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress bar

2001-02-01 Thread Philip Arnold - ASP

 Yes, and yes - as many times as you want. The CFFLUSH tag flushes the
 current ColdFusion output buffer to the web server, which then
 sends it back
 to the client. The first instance of the CFFLUSH tag on a page
 sends back
 all of the HTML headers as well. Subsequent CFFLUSH tags send the output
 buffered only since the previous flush.

Fantastic... I knew this was going to be useful, but knowing this means that
I know how much more useful

Roll on the Beta g

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress bar

2001-02-01 Thread Philip Arnold - ASP

 Damm, ain't gonna work with Fusebox :(

 Explanation: Fusebox works by processing the content of the page then,
 displaying the layout around it after the content has been completed.  :(

Sorry, but how can it put a Table layout above some already generated
content?

You must have to do the top part of the layout, then the copy, then the
latter part of the layout...

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Progress bar

2001-02-01 Thread James Smith

Do we know what sort of processor hit it will cause yet?  For example
would...

cfoutput query...
  trtd#name#/tdtd#phone#/td/tr
  cfflush
/cfoutput

be painfully slow to be practical?

--
James Smith
[EMAIL PROTECTED]
Brainbench transcript ID: 822462
http://www.brainbench.com/transcript.jsp?pid=822462

- Original Message -
From: "Ben Forta" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, February 01, 2001 11:36 AM
Subject: RE: Progress bar


 Yes, and yes - as many times as you want. The CFFLUSH tag flushes the
 current ColdFusion output buffer to the web server, which then sends it
back
 to the client. The first instance of the CFFLUSH tag on a page sends
back
 all of the HTML headers as well. Subsequent CFFLUSH tags send the output
 buffered only since the previous flush.

 --- Ben



 -Original Message-
 From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 01, 2001 5:44 AM
 To: CF-Talk
 Subject: RE: Progress bar


  John, there is no real clean way to do this now (lots of kludges
  though). As
  I demonstrated at the Developer's Conference, CF5 has a new tag called
  CFFLUSH that does exactly what you want. And CF5 starts beta
  pretty soon.

 Just a question on CFFlush - can it be used at any time, or multiple times
 in a template?

 Philip Arnold
 Director
 Certified ColdFusion Developer
 ASP Multimedia Limited
 T: +44 (0)20 8680 1133

 "Websites for the real world"

 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.
 **

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress bar

2001-02-01 Thread Ben Forta

Not much at all.

But, it is worth noting that your specific example will not really work.
Yes, data will get sent to the client, but as what you are sending is part
of a table it won't be displayed anyway until the entire table is retrieved.
That's how Web browsers handle tables, and there is not much you can do
about it (they display nothing until the entire table has been retrieved
because cells lower down in the table can effect sizing and spacing higher
up).

As a rule, this feature is useful for plain text, lists, complete tables,
etc - but not for partial elements.

--- Ben


-Original Message-
From: James Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 7:57 AM
To: CF-Talk
Subject: Re: Progress bar


Do we know what sort of processor hit it will cause yet?  For example
would...

cfoutput query...
  trtd#name#/tdtd#phone#/td/tr
  cfflush
/cfoutput

be painfully slow to be practical?

--
James Smith
[EMAIL PROTECTED]
Brainbench transcript ID: 822462
http://www.brainbench.com/transcript.jsp?pid=822462

- Original Message -
From: "Ben Forta" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Thursday, February 01, 2001 11:36 AM
Subject: RE: Progress bar


 Yes, and yes - as many times as you want. The CFFLUSH tag flushes the
 current ColdFusion output buffer to the web server, which then sends it
back
 to the client. The first instance of the CFFLUSH tag on a page sends
back
 all of the HTML headers as well. Subsequent CFFLUSH tags send the output
 buffered only since the previous flush.

 --- Ben



 -Original Message-
 From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 01, 2001 5:44 AM
 To: CF-Talk
 Subject: RE: Progress bar


  John, there is no real clean way to do this now (lots of kludges
  though). As
  I demonstrated at the Developer's Conference, CF5 has a new tag called
  CFFLUSH that does exactly what you want. And CF5 starts beta
  pretty soon.

 Just a question on CFFlush - can it be used at any time, or multiple times
 in a template?

 Philip Arnold
 Director
 Certified ColdFusion Developer
 ASP Multimedia Limited
 T: +44 (0)20 8680 1133

 "Websites for the real world"

 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.
 **

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Progress bar

2001-02-01 Thread Joby Bednar

Can I ask how you invoked the layer switch?
I am assuming on loosing the focus of the window, but I guess you could
have
also used the events handlers!

Here was my test code you can cut and paste and play with:
-
script language="javascript"
var count = 0;
function movebar() {
box.style.visibility = "visible";
if (count  66){count++;bar.value = bar.value+".";stopwatch();}
}
function stopwatch(){clearTimeout(timer);var timer=setTimeout("movebar()",
200);}
/script
style type="text/css"
!--
#box {  position:absolute;
visibility:hidden;
left:100; top:100;
background-color:#BB;
border-style:solid;
border-width:1px;
border-color:black;
width:300;
}
 --
/style

div id="box"input type="Button" name="bar" value="."
style="background-color:red;color:red;"/div
a href="#" onclick="movebar()"Click Me/a
-

It's a bit sloppy, but it was just a test.  The bar will popup instantly and
start moving when you click the link.  Since the code is part of the
document, when the document is switched with a new page, the whole thing
disappears.  In this example I used a button and changed the text in the
button by adding a "." after each timeframe.  A cleaner way would be to use
a graphic or other DIV and just adjust the width, but it gives a nice 3D
look and feel so whatever floats your boat.  Since I mainly use IE, don't
expect cross browser compatibility, but you can use the same logic and do
something similar for Netscape.  If using this type of thing, I would
probably also set the position of the DIV so it was centered in the window.

Again, this was just a test so some modification needs to be done for
whatever the final effect is.  Hope it helps...

Joby Bednar
Director of Internet Design
iNEOgroup.com


-Original Message-
From: Andrew Scott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 2:14 AM
To: CF-Talk
Subject: RE: Progress bar


Can I ask how you invoked the layer switch?

I am assuming on loosing the focus of the window, but I guess you could have
also used the events handlers!


-Original Message-
From: Joby Bednar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 1 February 2001 12:55 PM
To: CF-Talk
Subject: RE: Progress bar


I did it in a rather simple way... doing it by creating a hidden layer that
has a "bar" (a graphic, button, etc.) in it.  Create a function in
Javascript that shows the layer when you click something.  The function
alters the size of the bar as time passes, say every 10th of a second.  When
the browser finally loads the next page, the whole thing disappears.  The
nice thing about it is that it acts like a popup status window rather than a
whole other page, and you can figure out the timing so if it ever reached
the end, the browser would normally timeout.  The bad thing about it is that
you would have to have every page call the script and have the layer in it
and have each link call the function, but that's not too big of a deal.

Joby Bednar
Director of Internet Design
iNEOgroup.com


-Original Message-
From: John Anderson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 3:00 PM
To: CF-Talk
Subject: Progress bar


Has anyone here implemented a progress bar.

Similar to what happens on expedia when searching for travel information.

What is the key to this with a web based app?

Thanks,
John Anderson
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists