[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">
<?=$capa_html;?>
</div>
<a href="[removed]void(0);" onclick="mostra_video('<?=$video->id_video;?>');"><img src="/videos/public/preview/<?=$video->preview;?>" 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/<?=$capa->arquivo;?>','movie','/videos/public/flv_player/flvplayer' ); //end AC code
<noscript>
<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">
<param name="movie" value="/videos/public/flv_player/flvplayer.swf" />
<param name="quality" value="high" />
<param name="flashvars" value="file=/videos/public/videos/<?=$capa->arquivo;?>" />
<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/<?=$capa->arquivo;?>"></embed>
</object>
</noscript>
<br />
<strong><?=$capa->nome;?></strong><br />
<?=$capa->descricao;?>
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