Mar 01, 2011, 8:29 AM
[CLOSED] ClientID inside DirectEvents
<script type="text/javascript" language="javascript">
var windowOpeningMask = new Ext.LoadMask(Ext.getBody(), { msg: 'loading" />' };
</script>
and later: <DirectEvents>
<Click OnEvent="ButtonDetails_Click"
Before="
#{ButtonDetails}.setSelectable(false);
windowOpeningMask.show();"
Complete="
#{ButtonDetails}.setSelectable(true);
windowOpeningMask.hide();
"/>
</DirectEvents>
I would customize name of my variable depending on current control ID. I tried: <script type="text/javascript" language="javascript">
var <%= this.ClientID %>windowOpeningMask = new Ext.LoadMask(Ext.getBody(), { msg: 'loading" />' };
</script>
and this produce me "WebPartManager1_AxUserControlWebPart1_ctl01window OpeningMask" which is what I want. My problem is to get the same inside DirectEvents. Can't figure out how might I archive it ?Since there is no tag element "LoadMask" I can't use #{LoadMaskElement} right ?
Last edited by Daniil; Mar 07, 2011 at 9:15 PM.
Reason: [CLOSED]