Feb 27, 2012, 7:06 PM
[CLOSED] Global Resources in DirectEvent Beforehandler
Is something like this even possible? I can't seem to find a way to have the Resources load up from my language packs.
I tried even using a function like I use for my page title,
<title><%= GetResource("LanguagePack", "systemTitle")%></title>
it works for the title but not after I embed it into javascript.
Any ideas!?! Thanks!
I tried even using a function like I use for my page title,
<title><%= GetResource("LanguagePack", "systemTitle")%></title>
it works for the title but not after I embed it into javascript.
Any ideas!?! Thanks!
<ext:Button ID="btnLogin" runat="server" Text="<%$ Resources:LanguagePack, txtLogin %>">
<DirectEvents>
<Click OnEvent="ProcessLogin" Before="#{sbStatus}.showBusy('<%$ Resources:LanguagePack, msgVerifyAccount %>');"
Failure="Ext.Msg.show({
title : 'Error',
msg : '<%$ Resources:LanguagePack, msgLoginError %>',
minWidth: 200,
modal : true,
icon : Ext.Msg.ERROR,
buttons : Ext.Msg.OK
}); #{sbStatus}.clearStatus('<%$ Resources:LanguagePack, msgReady %>');">
</Click>
</DirectEvents>
</ext:Button>
Last edited by Daniil; Mar 01, 2012 at 7:15 PM.
Reason: [CLOSED]