Re: Flash progress bar in coldfusion

2006-12-26 Thread Bruce Sorge
I think that you have to use the CFFLUSH tag. Maybe something like this?


OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 codebase=
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0

   WIDTH=221 HEIGHT=70 id=proggybar.swf ALIGN=
PARAM NAME=movie VALUE=proggybar.swf PARAM NAME=quality VALUE=high
PARAM NAME=bgcolor VALUE=#ff
EMBED src=proggybar.swf quality=high bgcolor=#dd WIDTH=221 HEIGHT=70
   NAME=proggybar.swf ALIGN= TYPE=application/x-shockwave-flash
PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer;
/OBJECT

!--- Flush the page output buffer ---

cfflush

!--- Put code here that takes a long time to output ---

HTH,

Bruce

On 12/26/06, chr chr [EMAIL PROTECTED] wrote:

 Hi Everybody,

 I got one simple problem with flash progress bar, if i run the below code
 in html file it is working fine and displaying the flash progress bar. If i
 include the same code in coldfusion file the flash progress bar is not
 displaying, did i miss anything?

 !-- Flash movie tag--

 OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 codebase=
 http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0
 
WIDTH=221 HEIGHT=70 id=proggybar.swf ALIGN=
 PARAM NAME=movie VALUE=proggybar.swf PARAM NAME=quality VALUE=high
 PARAM NAME=bgcolor VALUE=#ff
 EMBED src=proggybar.swf quality=high bgcolor=#dd WIDTH=221
 HEIGHT=70
NAME=proggybar.swf ALIGN= TYPE=application/x-shockwave-flash
 PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer;
 /OBJECT

 Please help me, thanks in advance.
 Belated Happy Christmas and Happy new year to everybody.

 Thanks!

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

 

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265006
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Flash progress bar in coldfusion

2006-12-26 Thread Jake Churchill
You may need to escape the #

chr chr wrote:
 Hi Everybody,

   I got one simple problem with flash progress bar, if i run the below code 
 in html file it is working fine and displaying the flash progress bar. If i 
 include the same code in coldfusion file the flash progress bar is not 
 displaying, did i miss anything? 

   !-- Flash movie tag--

   OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 
 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0;
 WIDTH=221 HEIGHT=70 id=proggybar.swf ALIGN=
 PARAM NAME=movie VALUE=proggybar.swf PARAM NAME=quality VALUE=high
 PARAM NAME=bgcolor VALUE=#ff
 EMBED src=proggybar.swf quality=high bgcolor=#dd WIDTH=221 HEIGHT=70
 NAME=proggybar.swf ALIGN= TYPE=application/x-shockwave-flash 
 PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer;
 /OBJECT
   
 Please help me, thanks in advance.
   Belated Happy Christmas and Happy new year to everybody.

   Thanks!

  __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 

 

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265008
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Flash progress bar in coldfusion

2006-12-26 Thread chr chr
I tried both ways(cfflush and #) still its not working.

Thanks!

You may need to escape the #

chr chr wrote:


~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265011
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Flash progress bar in coldfusion

2006-12-26 Thread chr chr
This is the simple coldfusion code i'm trying to do

!-- Flash movie tag--

OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0;
WIDTH=221 HEIGHT=70 id=proggybar.swf ALIGN=
PARAM NAME=movie VALUE=file:///C|/Documents and 
Settings/rchandra/Desktop/proggybar/proggybar.swf PARAM NAME=quality 
VALUE=high
PARAM NAME=bgcolor VALUE=ff
EMBED src=file:///C|/Documents and 
Settings/rchandra/Desktop/proggybar/proggybar.swf quality=high bgcolor=dd 
WIDTH=221 HEIGHT=70
NAME=proggybar.swf ALIGN= TYPE=application/x-shockwave-flash 
PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer;
/OBJECT

cfflush

cfoutput Helooo.../cfoutput

Any ideas please.

Thanks!

I tried both ways(cfflush and #) still its not working.

Thanks!

You may need to escape the #

chr chr wrote:


~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265014
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Flash progress bar in coldfusion

2006-12-26 Thread Brad Wood
1)  Are you using a framework like Fusebox 3 in which cfflush doesn't
work?
2)  Does your web server have compression enabled (like gzip on apache)

Either one will make your entire request finish on the server, before
anything gets shoveled out to the browser.

Also when you say bar is not displaying, do you mean it doesn't
display while the rest of the page loads, or it never displays even
after the entire page has finished loading.  (if the second statement is
true, then disregard my first comments about Fusebox and compression).

This may be a stupid question, but I noticed the location of the SWF
file is local on the C: drive.  Are you running this on a LOCAL CF
server on YOUR PC, or are you placing this code on a remote CF server---
a server maybe without that SWF file?

~Brad

-Original Message-
From: chr chr [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 26, 2006 10:40 AM
To: CF-Talk
Subject: Re: Flash progress bar in coldfusion

This is the simple coldfusion code i'm trying to do

!-- Flash movie tag--

OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflas
h.cab#version=6,0,0,0
WIDTH=221 HEIGHT=70 id=proggybar.swf ALIGN=
PARAM NAME=movie VALUE=file:///C|/Documents and
Settings/rchandra/Desktop/proggybar/proggybar.swf PARAM NAME=quality
VALUE=high
PARAM NAME=bgcolor VALUE=ff
EMBED src=file:///C|/Documents and
Settings/rchandra/Desktop/proggybar/proggybar.swf quality=high
bgcolor=dd WIDTH=221 HEIGHT=70
NAME=proggybar.swf ALIGN= TYPE=application/x-shockwave-flash
PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer;
/OBJECT

cfflush

cfoutput Helooo.../cfoutput

Any ideas please.

Thanks!

I tried both ways(cfflush and #) still its not working.

Thanks!

You may need to escape the #

chr chr wrote:




~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265015
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Flash progress bar in coldfusion

2006-12-26 Thread chr chr
It never displays even after the entire page has finished loading. 

For now i'm trying this in my local CF server, once it is working fine then i 
need to move it to my production server.

Thanks!

1)  Are you using a framework like Fusebox 3 in which cfflush doesn't
work?
2)  Does your web server have compression enabled (like gzip on apache)

Either one will make your entire request finish on the server, before
anything gets shoveled out to the browser.

Also when you say bar is not displaying, do you mean it doesn't
display while the rest of the page loads, or it never displays even
after the entire page has finished loading.  (if the second statement is
true, then disregard my first comments about Fusebox and compression).

This may be a stupid question, but I noticed the location of the SWF
file is local on the C: drive.  Are you running this on a LOCAL CF
server on YOUR PC, or are you placing this code on a remote CF server---
a server maybe without that SWF file?

~Brad

-Original Message-
From: chr chr [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 26, 2006 10:40 AM
To: CF-Talk
Subject: Re: Flash progress bar in coldfusion

This is the simple coldfusion code i'm trying to do

!-- Flash movie tag--

OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflas
h.cab#version=6,0,0,0
WIDTH=221 HEIGHT=70 id=proggybar.swf ALIGN=
PARAM NAME=movie VALUE=file:///C|/Documents and
Settings/rchandra/Desktop/proggybar/proggybar.swf PARAM NAME=quality
VALUE=high
PARAM NAME=bgcolor VALUE=ff
EMBED src=file:///C|/Documents and
Settings/rchandra/Desktop/proggybar/proggybar.swf quality=high
bgcolor=dd WIDTH=221 HEIGHT=70
NAME=proggybar.swf ALIGN= TYPE=application/x-shockwave-flash
PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer;
/OBJECT

cfflush

cfoutput Helooo.../cfoutput

Any ideas please.

Thanks!

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265016
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Flash progress bar in coldfusion

2006-12-26 Thread Mark A Kruger
The first observation is that you can only run this through the file system
not through a web browser ... For that you would need http://; not
file://  Secondly, running it through the file system will likely
cause the content to be blocked based on security settings so you will have
to overcome that hurdle. Third, the id param in your object bar should be
something for use with JS (i.e. get rid of the .swf), and finally there is
usually some accompanying javascript with these things... Something setting
a variable from 1 to 100 or whatever The purpose of CFFLUSH is to cause
the browser to fire a setvariable command and adjust that variable from 1 to
100 based on the level complete. Cfflush sends stuff to the browser
prematurely where it is executed in advance of receiving the entire buffer.
The way I've seen it is...



object ...id=movie ...
/object

cfouput query=somequery with lots of rows
cfif NOT currentrow MOD 10

scriptdocument.movie.setVariable(#int((currentrow/queryname.recordcount) *
100)#);
/cfif

output some values
/cfoutput

-Mark

Mark A. Kruger, CFG, MCSE
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: chr chr [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 26, 2006 10:40 AM
To: CF-Talk
Subject: Re: Flash progress bar in coldfusion

This is the simple coldfusion code i'm trying to do

!-- Flash movie tag--

OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=6,0,0,0
WIDTH=221 HEIGHT=70 id=proggybar.swf ALIGN= PARAM NAME=movie
VALUE=file:///C|/Documents and
Settings/rchandra/Desktop/proggybar/proggybar.swf PARAM NAME=quality
VALUE=high PARAM NAME=bgcolor VALUE=ff EMBED
src=file:///C|/Documents and
Settings/rchandra/Desktop/proggybar/proggybar.swf quality=high bgcolor=dd
WIDTH=221 HEIGHT=70
NAME=proggybar.swf ALIGN= TYPE=application/x-shockwave-flash
PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer;
/OBJECT

cfflush

cfoutput Helooo.../cfoutput

Any ideas please.

Thanks!

I tried both ways(cfflush and #) still its not working.

Thanks!

You may need to escape the #

chr chr wrote:




~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265017
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Flash progress bar in coldfusion

2006-12-26 Thread Brad Wood
Interesting.  Do you see the hello line?  if you view the source of
the page after it loads, do you see the entire object tag etc.
What if you compare the html source of the working version to the
non-working version.  

Also, confirm the existence of the swf file on your PC.  

~Brad

-Original Message-
From: chr chr [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 26, 2006 10:58 AM
To: CF-Talk
Subject: Re: Flash progress bar in coldfusion

It never displays even after the entire page has finished loading. 

For now i'm trying this in my local CF server, once it is working fine
then i need to move it to my production server.

Thanks! 


~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265021
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Flash progress bar in coldfusion

2006-12-26 Thread Jake Churchill
I would recommend a relative path to the movie.  Using c:\ is looking on 
the client machine and it's very very likely that the security settings 
are blocking that.  Stick proggybar.swf in a location accessible to the 
web server.  

chr chr wrote:
 This is the simple coldfusion code i'm trying to do

 !-- Flash movie tag--

 OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 
 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0;
 WIDTH=221 HEIGHT=70 id=proggybar.swf ALIGN=
 PARAM NAME=movie VALUE=file:///C|/Documents and 
 Settings/rchandra/Desktop/proggybar/proggybar.swf PARAM NAME=quality 
 VALUE=high
 PARAM NAME=bgcolor VALUE=ff
 EMBED src=file:///C|/Documents and 
 Settings/rchandra/Desktop/proggybar/proggybar.swf quality=high bgcolor=dd 
 WIDTH=221 HEIGHT=70
 NAME=proggybar.swf ALIGN= TYPE=application/x-shockwave-flash 
 PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer;
 /OBJECT

 cfflush

 cfoutput Helooo.../cfoutput

 Any ideas please.

 Thanks!

   
 I tried both ways(cfflush and #) still its not working.

 Thanks!

 
 You may need to escape the #

 chr chr wrote:
   

 

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265025
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Flash progress bar in coldfusion

2006-12-26 Thread chr chr
Thanks for all the help, finally i figuered it out, i just made of couple of 
changes like http:// instead of file: and make sure file was in same directory 
or not? Finally progress bar is displaying now.

Thanks for getting me on right direction.

Actually what i am trying to do is, on the fly make a single zip file of more 
than 10-15 pdfs, at the time of zipping all pdfs i want to show some progress 
bar.

Once again Thank you and Happy New year.

The first observation is that you can only run this through the file system
not through a web browser ... For that you would need http://; not
file://  Secondly, running it through the file system will likely
cause the content to be blocked based on security settings so you will have
to overcome that hurdle. Third, the id param in your object bar should be
something for use with JS (i.e. get rid of the .swf), and finally there is
usually some accompanying javascript with these things... Something setting
a variable from 1 to 100 or whatever The purpose of CFFLUSH is to cause
the browser to fire a setvariable command and adjust that variable from 1 to
100 based on the level complete. Cfflush sends stuff to the browser
prematurely where it is executed in advance of receiving the entire buffer.
The way I've seen it is...



object ...id=movie ...
/object

cfouput query=somequery with lots of rows
   cfif NOT currentrow MOD 10
   
scriptdocument.movie.setVariable(#int((currentrow/queryname.recordcount) *
100)#);
   /cfif

   output some values
/cfoutput

-Mark

Mark A. Kruger, CFG, MCSE
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: chr chr [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 26, 2006 10:40 AM
To: CF-Talk
Subject: Re: Flash progress bar in coldfusion

This is the simple coldfusion code i'm trying to do

!-- Flash movie tag--

OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=6,0,0,0
WIDTH=221 HEIGHT=70 id=proggybar.swf ALIGN= PARAM NAME=movie
VALUE=file:///C|/Documents and
Settings/rchandra/Desktop/proggybar/proggybar.swf PARAM NAME=quality
VALUE=high PARAM NAME=bgcolor VALUE=ff EMBED
src=file:///C|/Documents and
Settings/rchandra/Desktop/proggybar/proggybar.swf quality=high bgcolor=dd
WIDTH=221 HEIGHT=70
NAME=proggybar.swf ALIGN= TYPE=application/x-shockwave-flash
PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer;
/OBJECT

cfflush

cfoutput Helooo.../cfoutput

Any ideas please.

Thanks!

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265028
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4