Apr 06, 2011, 4:00 AM
How Update control Ext: Label from Javascript
As you may have noticed, recently I iciandome with ExtNet's cool.
Well, I have some doubts about how to update a control Ext: label from javascri
Code Page.aspx
Thanks for all...
FAFNER
Well, I have some doubts about how to update a control Ext: label from javascri
Code Page.aspx
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server">
</ext:ResourceManager>
<form id="form1" runat="server">
<ext:Label ID="lblTestEN" runat="server"></ext:Label>
<br />
<ext:Button ID="btnTest" runat="server" Text="Click me" >
<Listeners>
<Click Fn="updateLabel" />
</Listeners>
</ext:Button>
</form>
</body>
Function for update Label<script type="text/javascript" language="javascript">
var updateLabel = function () {
var msg = "Updated!!!"
lblTestEN.update(msg);
};
</script>
It also works as followsExt.fly("lblTestEN").update(msg);
I would like to know the difference between the two ways to perform the update of the value of the label and what is most optimal. There are other ways to update the value?Thanks for all...
FAFNER