KingOrmon Posted April 3, 2012 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
dieger Posted April 3, 2012 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
dieger Posted April 4, 2012 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
fjtrooper Posted April 4, 2012 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
KingOrmon Posted April 12, 2012 Author Posted April 12, 2012 How can I apply it only for Menu clicks ? Quote
augusto.pellis Posted April 12, 2013 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
Administrators Farshad Mohajeri Posted April 12, 2013 Administrators 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
augusto.pellis Posted April 15, 2013 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
augusto.pellis Posted April 22, 2013 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
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.