Welcome Guest, Not a member yet? Register   Sign In
Ajax.Updater and Flash content
#1

[eluser]ELRafael[/eluser]
Hello everybody!

I have some problems with Prototype Ajax.Updater function. Let's explain my case!

In my view, i have this:

Code:
<div id="principal">
           &lt;?=$capa_html;?&gt;
</div>

&lt;a href="[removed]void(0);" onclick="mostra_video('&lt;?=$video-&gt;id_video;?&gt;');"><img src="/videos/public/preview/&lt;?=$video->preview;?&gt;" border="0" /></a>


    function mostra_video(_id)
    {
        new Ajax.Updater('principal', '/videos/principal/mostrar_video/'+_id, {onComplete:function(){ new Effect.BlindDown('principal');}} );
    }

Ok, its working, fine thanks!

But the var $capa_html has this content

Code:
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','320','height','260','title','Videos','src','/videos/public/flv_player/flvplayer','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','flashvars','file=/videos/public/videos/&lt;?=$capa->arquivo;?&gt;','movie','/videos/public/flv_player/flvplayer' ); //end AC code

            
            <noscript>
            
            &lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="320" height="260" title="Videos"&gt;
            <param name="movie" value="/videos/public/flv_player/flvplayer.swf" />
            <param name="quality" value="high" />
            <param name="flashvars" value="file=/videos/public/videos/&lt;?=$capa->arquivo;?&gt;" />
            &lt;embed src="/videos/public/flv_player/flvplayer.swf" width="320" height="260" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" flashvars="file=/videos/public/videos/&lt;?=$capa-&gt;arquivo;?&gt;">&lt;/embed&gt;
            &lt;/object&gt;
            </noscript>
<br />
<strong>&lt;?=$capa->nome;?&gt;</strong><br />
&lt;?=$capa->descricao;?&gt;

The string ($capa->nome and $capa->descricao) show fine. But the script part doesn't!!!

I saw in the scriptaculous wiki, a param called evalScripts, but if i set true, the updater clear the page and show me only the AC_.....

Ah, this script is for a flash content!!!

Thanks




Theme © iAndrew 2016 - Forum software by © MyBB