Hi there,
I have this simple code which basically creates a new window holding a video player via SWFobject. The new window is created when the user click on a certain button on a flash interface so I use getURL() function.
The code works mint on FF, Opera but under IE6 the window doesn't open at all.
------------------
getURL("javascript:win=window.open('','newWin','width=512,height=384,left=50,top=50,toolbar=no,location=no,scrollbars=no,status=no,resizable=yes,fullscreen=no');win.focus();void(0);win.document.write(%22<HTML><TITLE>Video Preview</TITLE><BODY leftmargin='0' topmargin='0' bgcolor='black'><div id='container'><a href=' color=white>Get the latest Flash Player to see this video.</a></font></div><script type='text/javascript' src='js/swfobject.js'></script><script type='text/javascript'>var s1 = new SWFObject('mediaplayer.swf','mediaplayer','512','384','7');s1.addParam('allowfullscreen','true');s1.addVariable('width','512');s1.addVariable('height','384');s1.addVariable('autostart','true');s1.addVariable('file','"+escape(big.video)+"');s1.write('container');</script></BODY></HTML>%22);", "_self");
------------------
note: escape(big.video) is the escape code value of the var big.video which holds an URL to a movie (basically the file that must be played).
I tried all kinds of things to make it work under IE6 - Using standard <object> tag for example instead SWFobject. I'm pretty sure that the code 'breaks' only when - mediaplayer.swf is accessed. Maybe some sort of protection? Anybody have any idea what may be causing this?
Thanks
L. Ivanov.
I have this simple code which basically creates a new window holding a video player via SWFobject. The new window is created when the user click on a certain button on a flash interface so I use getURL() function.
The code works mint on FF, Opera but under IE6 the window doesn't open at all.
------------------
getURL("javascript:win=window.open('','newWin','width=512,height=384,left=50,top=50,toolbar=no,location=no,scrollbars=no,status=no,resizable=yes,fullscreen=no');win.focus();void(0);win.document.write(%22<HTML><TITLE>Video Preview</TITLE><BODY leftmargin='0' topmargin='0' bgcolor='black'><div id='container'><a href=' color=white>Get the latest Flash Player to see this video.</a></font></div><script type='text/javascript' src='js/swfobject.js'></script><script type='text/javascript'>var s1 = new SWFObject('mediaplayer.swf','mediaplayer','512','384','7');s1.addParam('allowfullscreen','true');s1.addVariable('width','512');s1.addVariable('height','384');s1.addVariable('autostart','true');s1.addVariable('file','"+escape(big.video)+"');s1.write('container');</script></BODY></HTML>%22);", "_self");
------------------
note: escape(big.video) is the escape code value of the var big.video which holds an URL to a movie (basically the file that must be played).
I tried all kinds of things to make it work under IE6 - Using standard <object> tag for example instead SWFobject. I'm pretty sure that the code 'breaks' only when - mediaplayer.swf is accessed. Maybe some sort of protection? Anybody have any idea what may be causing this?
Thanks
L. Ivanov.