Archive for August 7th, 2007

ActiveX Control in IE (for Flash file)

Tuesday, August 7th, 2007

In php page to call like this;
<script src=”flash_player/swfeasy.js” type=”text/javascript”></script>
<script type=”text/javascript”>
swf_embed(’<?=$user_video?>’,'<?=$video_path?><?=$user_video?>’)
</script>

In javascript the function like this;

function swf_embed(str1,str2)
{
if (str1<>”")
{
document.write(’<object data=”flash_player/FlowPlayerLP.swf” type=”application/x-shockwave-flash” width=”230″ height=”173″ align=”absmiddle” id=”FlowPlayer”><param name=”allowScriptAccess” value=”always” /><param name=”movie” value=”flash_player/FlowPlayerLP.swf” /><param name=”quality” value=”high” /><param name=”scaleMode” value=”showAll” /><param name=”allowFullScreen” value=”false” /><param name=”wmode” value=”transparent” /><param name=”allowNetworking” value=”all” /><param name=”flashvars” value=”config={showMenu: false, allowFullScreen: false, autoPlay: true, loop: false, initialScale: \’scale\’, showLoopButton: false, showPlayListButtons: false, playList: [{ url: \’flash_player/view_demo.jpg\’ }, { url: \”+str2+’\’ },] }” /></object>’)

}
}

BY http://www.tryangled.com

Posted by Kalaivani S

Code to refresh the parent window from popup

Tuesday, August 7th, 2007

here is the code that can reload (refresh) the parent window

Put the code after all the operations in pop window is over

echo “<script>\n”;
echo “window.opener.location.reload();\n”;
echo “window.close();\n”;
echo “</script>”;

Posted By : B.SURESH

Posted by Suresh B