KingOrmon Posted April 3, 2012 Share Posted April 3, 2012 Hi, TUniScreenMask works very well, the problem is when you have many buttons, menus (here does not supported),... Exists any way for show a screenmask for all button click,... ? Actually I have a TUniScreenMask per button. Regards Quote Link to comment Share on other sites More sharing options...
dieger Posted April 3, 2012 Share Posted April 3, 2012 Hi, TUniScreenMask works very well, the problem is when you have many buttons, menus (here does not supported),... Exists any way for show a screenmask for all button click,... ? Actually I have a TUniScreenMask per button. Regards Hi KingOrmon, I put the code above on MainForm.Scripts property: Ext.Ajax.on('beforerequest', function(conn, request){ if (request.e == 'click') { Ext.getBody().mask('Wait, please...', 'Loading') } }, Ext.getBody() ); Ext.Ajax.on('requestcomplete', Ext.getBody().unmask, Ext.getBody()); Ext.Ajax.on('requestexception', Ext.getBody().unmask, Ext.getBody()); Ps.: It even works with menus! Regards Quote Link to comment Share on other sites More sharing options...
KingOrmon Posted April 3, 2012 Author Share Posted April 3, 2012 Nice!!!!, thank you so much. Quote Link to comment Share on other sites More sharing options...
fjtrooper Posted April 4, 2012 Share Posted April 4, 2012 GOOD!!! THX Quote Link to comment Share on other sites More sharing options...
amrihuang Posted April 4, 2012 Share Posted April 4, 2012 Can check belong to menu? Quote Link to comment Share on other sites More sharing options...
dieger Posted April 4, 2012 Share Posted April 4, 2012 Can check belong to menu? You can try to check request.params property to identify anothers properties on request. But be careful, because some requests do not pass this parameter in the same format. Quote Link to comment Share on other sites More sharing options...
fjtrooper Posted April 4, 2012 Share Posted April 4, 2012 is it posible to do with double click? I've tried (request.e == 'dblclick') and (request.e == 'doubleclick') but it doesn't work. THX! Quote Link to comment Share on other sites More sharing options...
KingOrmon Posted April 12, 2012 Author Share Posted April 12, 2012 How can I apply it only for Menu clicks ? Quote Link to comment Share on other sites More sharing options...
augusto.pellis Posted April 12, 2013 Share Posted April 12, 2013 In 0.93 it seems not working anymore...is there a workaround? (I'm sorry I'm absolutely new on javascript) Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 12, 2013 Administrators Share Posted April 12, 2013 In 0.93 it seems not working anymore...is there a workaround? (I'm sorry I'm absolutely new on javascript) It is Ext JS 4 which is no longer compatible with above code. Quote Link to comment Share on other sites More sharing options...
augusto.pellis Posted April 15, 2013 Share Posted April 15, 2013 Thank you for the info Farshad! Has anyone ideas how to replace it in order to obtain the same useful behaviour? Quote Link to comment Share on other sites More sharing options...
augusto.pellis Posted April 22, 2013 Share Posted April 22, 2013 Up....I really can not figure out how to re-enable the global mask behaviour...i feel it's an extremely useful behaviour imho. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.