Jan 10, 2011, 11:03 AM
[CLOSED] How to simulate button click or call Direct Event with Extra Parameter from JS?
Hi All,
I have a button on my page:
Is it possible to just simulate it (it would be better), or I have to call Ext.net.DirectEvent.confirmRequest?
(It works, but I didn't found how to pass extra parameters to this method).
I have a button on my page:
<ext:Button ID="SaveChanges" runat="server" Text="Save and Close">
<DirectEvents>
<Click OnEvent="Save" >
<ExtraParams>
<ext:Parameter Name="MyParam" Mode="Raw" Value="Ext.encode(#{Store}.getRecordsValues())"></ext:Parameter>
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
I need to simulate its Click from JavaScript.Is it possible to just simulate it (it would be better), or I have to call Ext.net.DirectEvent.confirmRequest?
(It works, but I didn't found how to pass extra parameters to this method).