Welcome Guest Search | Active Topics | Sign In | Register

Dialog change div InnerText property doesn't work in FireFox Options
Yannick
Posted: Wednesday, October 31, 2007 8:50:23 AM
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.
eo_support
Posted: Wednesday, October 31, 2007 9:27:19 AM
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.
Yannick
Posted: Wednesday, October 31, 2007 9:33:19 AM
Rank: Member
Groups: Member

Joined: 10/25/2007
Posts: 16
d'oh! oups sorry for the inconvenience.
Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.