nightkarnation
07-18-2012, 05:11 AM
Hey Guys!
I am having a problem with Chrome only (not with IE)...
I have a swf file loading from html and I am using the following javascript: (old_pedant, from this forum helped me out to write it)
<script type="text/javascript">
var srch = document.location.search;
srch = srch.substring(1); // strip off
srch = srch.replace(/^\?(actnum|referral)\=[\w]+$/i); // zap all except letters, numbers, underline
document.write(
'<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n'+
' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"\n'+
' WIDTH="800" HEIGHT="700" id="MBid">\n'+
' <PARAM NAME=movie VALUE="MBid.swf?'+srch+'">\n'+
' <PARAM NAME=quality VALUE=high>\n'+
' <PARAM NAME=bgcolor VALUE=#333333>\n'+
' <PARAM NAME=wmode VALUE=Opaque>\n'+
' <EMBED src="MBid.swf'+srch+'"\n'+
' quality=high bgcolor=#FFFFFF wmode=transparent WIDTH="800" HEIGHT="700" NAME="MBid"\n'+
' TYPE="application/x-shockwave-flash"\n'+
' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>\n'+
'</OBJECT>');
</script>
I need to pass from html/java to flash these variables (only sometimes and separated, not at the same time):
ex: www.mysite.com?actnum=53253838340
ex: www.mysite.com?referral=user_3
With IE they are retrieved perfectly, but with Chrome, when entering to the site using one of these links...the site is blank...
Any ideas where the script might be changed to have the parameter variables working with Chrome too?
Thanks a lot in advance!!
Cheers!
I am having a problem with Chrome only (not with IE)...
I have a swf file loading from html and I am using the following javascript: (old_pedant, from this forum helped me out to write it)
<script type="text/javascript">
var srch = document.location.search;
srch = srch.substring(1); // strip off
srch = srch.replace(/^\?(actnum|referral)\=[\w]+$/i); // zap all except letters, numbers, underline
document.write(
'<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n'+
' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"\n'+
' WIDTH="800" HEIGHT="700" id="MBid">\n'+
' <PARAM NAME=movie VALUE="MBid.swf?'+srch+'">\n'+
' <PARAM NAME=quality VALUE=high>\n'+
' <PARAM NAME=bgcolor VALUE=#333333>\n'+
' <PARAM NAME=wmode VALUE=Opaque>\n'+
' <EMBED src="MBid.swf'+srch+'"\n'+
' quality=high bgcolor=#FFFFFF wmode=transparent WIDTH="800" HEIGHT="700" NAME="MBid"\n'+
' TYPE="application/x-shockwave-flash"\n'+
' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>\n'+
'</OBJECT>');
</script>
I need to pass from html/java to flash these variables (only sometimes and separated, not at the same time):
ex: www.mysite.com?actnum=53253838340
ex: www.mysite.com?referral=user_3
With IE they are retrieved perfectly, but with Chrome, when entering to the site using one of these links...the site is blank...
Any ideas where the script might be changed to have the parameter variables working with Chrome too?
Thanks a lot in advance!!
Cheers!