PDA

View Full Version : [ADDED] [V0.8.0] Loadmask on AjaxMethod



jchau
Dec 20, 2008, 1:42 AM
It will be nice if you can setup a loadmask for an AjaxMethod as part of the config object. Right now, I manually create and show a mask before calling the AjaxMethod and define a success and failure function to remove the mask.

geoffrey.mcgill
Jan 07, 2009, 10:42 AM
The LoadMask API has bothered me for a while and I have some ideas on how to simplify. Maybe during the v0.8 release cycle we can refactor the LoadMask functionality and create a global singleton with simple .show/hide functions.

Adding a LoadMask config to the AjaxMethod config object should not be a problem. 

geoffrey.mcgill
Jan 29, 2009, 8:32 PM
The EventMask property has been added to the [AjaxMethod].

Example



[AjaxMethod(ShowMask = true, Msg = "Testing...")]


Or, you can explicitly set/configure in js by using the "eventMask" property.


Example



eventMask: { showMask:true, msg:'Testing...' }