Note that there are some explanatory texts on larger screens.

plurals
  1. POAvoid page refresh when inserting flash with Javascript (jQuery)
    primarykey
    data
    text
    <p>I've got this function</p> <pre><code>function onVideo(vchat, idUser){ $('#videollamada').html('&lt;div class="videollamada"&gt;'+ '&lt;div align="right"&gt;'+ '&lt;a href="javascript:closevll(0,'+idUser+');"&gt;Cerrar&lt;/a&gt;&lt;/div&gt;'+ '&lt;div align="center"&gt;'); if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js."); } else { AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', '350', 'height', '240', 'src', 'videochat', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'wmode', 'window', 'devicefont', 'false', 'id', 'videochat', 'bgcolor', '#ffffff', 'name', 'videochat', 'menu', 'true', 'allowFullScreen', 'true', 'allowScriptAccess','sameDomain', 'movie', '../../vChat/videochat?address=ec2-50-19-75-28.compute-1.amazonaws.com&amp;from=0&amp;to=1', 'salign', '' ); //end AC code } $('#videollamada').append('&lt;/div&gt;&lt;/div&gt;'); usingvll= vchat; $('#vll_'+idUser).html('&lt;img src="images/webcamUs.png" width="15" /&gt;&amp;nbsp;&lt;img src="images/phoneOut.png" width="15" /&gt;'); } </code></pre> <p>It should make visible a space for video chatting. By itself it works, I can load any html and so. The problem comes when I tried to add a little rtmp client in flash. Instead of displaying it within the page, it refreshes the page and only loads the swf in the browser instead.</p> <p>Anybody know how to load the swf properly, it is, without making the browser refresh?</p> <p><strong>EDIT</strong></p> <p>This is how AC_FL_RunContent looks like</p> <pre><code>function AC_FL_RunContent(){ var ret = AC_GetArgs ( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" , "application/x-shockwave-flash" ); AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload