Ok, now i am not sure what exactly is a problem... sorry.
You can call this code $().ajaxStart($('#mydiv').blockUI).ajaxStop($('#mydiv').unblockUI); as many time as you want. It only changes which function will be called once AJAX is doing the call.. So right before doing your ajax call to the $().ajaxStart($('#mydiv').blockUI).ajaxStop($('#mydiv').unblockUI); Or you can create your own function wrapper that does the AJAX call function DoTheCall(element) { $().ajaxStart($(element).blockUI).ajaxStop($(element).unblockUI); $.ajax(.....); //the actual ajax call.... } George, On Nov 13, 12:15 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]> wrote: > hi Georges, > yes, but the problem is that i don't know which element is concerned > by the call (unless i hardcode it each time of course, but that's what > i would like to avoid). > > Thanks for your input nonetheless. > > > > On Thu, Nov 13, 2008 at 6:12 PM, George <[EMAIL PROTECTED]> wrote: > > > you just need to change $.blockUI to $('#mytagid').bockUI. The sasme > > with unblock call. > > > George > > > On Nov 13, 12:07 pm, pixeline <[EMAIL PROTECTED]> wrote: > >> Hi! > > >> My website uses ajax to refresh various elements in the course of the > >> user's navigation. I would like to display a "please wait" message in > >> the element being refreshed and blockUI is the perfect candidate for > >> that. > > >> However, there are many elements concerned, and i would like to > >> systematize the blockUI calls. > > >> In blockui doc, there is a nice simple way to systematize its use: > > >> $().ajaxStart($.blockUI).ajaxStop($.unblockUI); > > >> Now, i would like to know if it is possible to customize this call so > >> that the concerned element shows blockUI, instead of the whole page ? > > >> Thank you ! > > >> Alexandre- Hide quoted text - > > - Show quoted text -