Rank: Member Groups: Member
Joined: 10/25/2007 Posts: 16
|
Hello! I have a Dialog and I need to change text depending of the selected language. In IE7 everything's fine but in FireFox the text doesn't change. Here's the dialog:
Code: HTML/ASPX
<eo:Dialog runat="server" id="DialogURLSubject" ConfineElementID="divContainerMax" AnchorElementID="divPositionMouse2" BorderStyle="Solid"
AllowResize="True" ControlSkinID="None" Width="475px" BorderWidth="1px" Height="570px"
ShadowColor="LightGray" BorderColor="#335C88" ShadowDepth="3"
HeaderHtml="Comparable" ResizeImageUrl="00020014" BackShadeColor="Gray" ShowEffect-Duration="200" CloseEffect-Duration="200" ShowEffect-Type="Fade" CloseEffect-Type="Fade"
ContentUrl="DescriptionComparables.aspx" ClientSideOnInitDialog="CheckLangueSubjectDescription">
<HeaderStyleActive></HeaderStyleActive>
<ContentStyleActive></ContentStyleActive>
<FooterStyleActive CssText="background-color:#DEDEDE;"></FooterStyleActive>
<FooterTemplate>
<div id="lblDialogUrlSubjectClose" style="font-weight:bold;cursor:pointer;width:470px;text-align:center;" onclick="HideDescription();" >Close this window</div>
</FooterTemplate>
</eo:Dialog>
and here's the JS code:
Code: JavaScript
function CheckLangueSubjectDescription(e)
{
if (document.getElementById('PublicCode_hidLangue').value == 'Francais')
{
eo_GetObject('DialogURLSubject').setCaption('Sujet');
document.getElementById("lblDialogUrlSubjectClose").innerText = 'Fermer cette fenĂȘtre';
}
else
{
eo_GetObject('DialogURLSubject').setCaption('Subject');
document.getElementById("lblDialogUrlSubjectClose").innerText = 'Close this window';
}
}
Thanks for your help.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Well, that has nothing to do with our Dialog. Who tells you that FireFox supports innerText property? :) innerText is an IE only thing.
|
Rank: Member Groups: Member
Joined: 10/25/2007 Posts: 16
|
oups sorry for the inconvenience. Thanks
|