I am using one java script to recieve a value which i am pulling it in flash object. The script worked fine on IE and flash is displaying the value, but on Firefox its not retrieving the value means that document.getelementbyId is not working in FF.
Here is the code which is in the header:
Code: Select all
<script type="text/javascript">
function CountryCode(){
var tempObj = document.getElementById('Spotlight_en_gb');
if(tempObj)
{
tempObj.SetVariable('ccode', countryCode);
}
}
</script>
Heres my Flash object tag:
Code: Select all
<div id="HighlightSectionHolder">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="770" height="276" [b]Id="Spotlight_en_gb"[/b] wmode="transparent" [b]name="Spotlight_en_gb"[/b]>
<param name="movie" value="$Common/Data/HomePageData/Movies.swf" />
<param name="wmode" value="transparent" />
<param name="menu" value="false" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="$Common/Data/HomePageData/Movies.swf" width="770" height="276" wmode="transparent">
<!--<![endif]-->
<!--Non Flash Content-->
<span class="topCorner"></span>
<%@ Register TagPrefix="uc1" TagName="TopHighlights" Src="~/$Common/Control/TopHighlights.ascx" %>
<uc1:TopHighlights id="TopHighlights1" runat="server"></uc1:TopHighlights>
<!--Non Flash Content End-->
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
<script type="text/javascript">CountryCode();</script>
I have given the id plus the name to get the values in the flash dynamic text box wthe variable name 'ccode' where the given value gets in.
In IE everything works perfectly but in FF i am not getting the value at all.
Any help will be appreciated
Thanks
Fahad.