Re: force swf refresh

2006-12-27 Thread Chris Hartjes
On 12/25/06, gabordemeter [EMAIL PROTECTED] wrote: Hi all and Merry Christmas, I have a page on which I have a swf movie loaded via the swf object helper I know I'm coming a little late to the party here, but it sounds like you're trying to use PHP/SWF charts, and I have an excellent

force swf refresh

2006-12-25 Thread gabordemeter
Hi all and Merry Christmas, I have a page on which I have a swf movie loaded via the swf object helper ?php echo $swfobject-display('/swf/chart.swf', 'Chart', '800' , '350' , '7' , '#fff'); ? The movie gets data from a cake controller and plots it on a chart. The data is particular to each

Re: force swf refresh

2006-12-25 Thread Claudio Poli 
don't know if it will work, but maybe you can prevent caching appending a ?hashhere to chart.swf. hash can be generated in multiple ways, like a date or a md5 hash. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: force swf refresh

2006-12-25 Thread phirschybar
If the movie is grabbing data every time it is loaded, the issue is probably not with caching the actual flash movie but maybe the DATA the movie is grabbing from the controller is coming from a cached source. If you need it to be fresh on every page load, make sure that it is not grabbing the

Re: force swf refresh

2006-12-25 Thread gabordemeter
Thanks for the feedback Claudio. Alreay tried doing: ?php echo $swfobject-display('/swf/chart.swf?nocache='.floor(rand(1, 100)/rand(1, 1)), 'Chart', '800' , '350', '7' , '#fff'); ? IE doesn't seem to care. Still showing the old chart. Any other suggestion. Is it possible to send

Re: force swf refresh

2006-12-25 Thread gabordemeter
phirschybar, I thought of that, but given that FIrefox (on Mac and Win) and Safari do not have any problem updating the movie, I think the problem is not on the server but rather on the client (as only IE seems to not refresh it). On Dec 25, 11:04 am, phirschybar [EMAIL PROTECTED] wrote: If

Re: force swf refresh

2006-12-25 Thread Claudio Poli
no problem, I know the issue because I've worked with swf charts and IE keeps caching the file. there's something you can do, instead of putting an hash to swf, try putting something like this in source url: /controller/action/param?uniqueid='.uniqid(rand(),true) kain On 25/dic/06, at

Re: force swf refresh

2006-12-25 Thread phirschybar
gabordemeter: sorry I missed the part about it working in FF. But still doesn't the SWF have to grab the data on every load, even if the SWF is cached? Claudio: to satisfy my curiosity.. what file do you think IE is caching? On Dec 25, 11:25 am, Claudio Poli [EMAIL PROTECTED] wrote: no

RE: force swf refresh

2006-12-25 Thread Mariano Iglesias
question they ask. So be smart, be cool, and share your knowledge. BAKE ON! -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de Claudio Poli Enviado el: Lunes, 25 de Diciembre de 2006 01:26 p.m. Para: cake-php@googlegroups.com Asunto: Re: force swf

RE: force swf refresh

2006-12-25 Thread Mariano Iglesias
, and share your knowledge. BAKE ON! -Mensaje original- De: Mariano Iglesias [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 25 de Diciembre de 2006 01:37 p.m. Para: 'cake-php@googlegroups.com' Asunto: RE: force swf refresh Or can't you build a Proxy controller for such files and let

Re: force swf refresh

2006-12-25 Thread Claudio Poli
On 25/dic/06, at 17:37, phirschybar wrote: gabordemeter: sorry I missed the part about it working in FF. But still doesn't the SWF have to grab the data on every load, even if the SWF is cached? Claudio: to satisfy my curiosity.. what file do you think IE is caching? the content sent to

Re: force swf refresh

2006-12-25 Thread gabordemeter
Claudio: Not sure I understood what you suggest. You say: instead of putting an hash to swf, try putting something like this in source url: /controller/action/param?uniqueid='.uniqid(rand(),true) where should I put this? the source of the file is 'swf/chart.swf'. There's no controller,

Re: force swf refresh

2006-12-25 Thread gabordemeter
p.m. Para: 'cake-php@googlegroups.com' Asunto: RE: force swf refresh Or can't you build a Proxy controller for such files and let the controller add header tags for browsers not to cache (must-revalidate, etc.)? So then from your view instead of placing the OBJECT tag to directly find the swf you

RE: force swf refresh

2006-12-25 Thread Mariano Iglesias
, and share your knowledge. BAKE ON! -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de gabordemeter Enviado el: Lunes, 25 de Diciembre de 2006 02:29 p.m. Para: Cake PHP Asunto: Re: force swf refresh Just tried it. The flash movie doesn't load

Re: force swf refresh

2006-12-25 Thread Claudio Poli 
gabordemeter ha scritto: Claudio: Not sure I understood what you suggest. You say: instead of putting an hash to swf, try putting something like this in source url: /controller/action/param?uniqueid='.uniqid(rand(),true) where should I put this? the source of the file is