What about  adding a line in web2py_component (line 87 of web2py_ajax.js)

function web2py_component(action,target) {
  jQuery(function(){
      jQuery('#'+target).html("Loading..."); ////// <------- replace this
with some picture etc.....
      web2py_ajax_page('get',action,null,target);
  });
}

would it break anything ?

On Tue, Jun 28, 2011 at 8:57 AM, Sebastian E. Ovide <
[email protected]> wrote:

> I mean the A function... say that you have a link which reload the
> component... and the response takes few seconds... in these few seconds you
> could click the link again... and it is not clear that it is loading
> something....
>
>
> On Mon, Jun 27, 2011 at 11:30 PM, David J. <[email protected]> wrote:
>
>> You can pass a loading image to the load function
>>
>>
>>
>>
>> On 6/27/11 6:13 PM, Sebastian E. Ovide wrote:
>>
>>> Hi All,
>>>
>>> some times a link A will reload a component (via cid=request.cid). In
>>> those situations would be nice to have some kind of "loading" message
>>> displayed.
>>>
>>> thanks
>>>
>>> --
>>> Sebastian E. Ovide
>>>
>>>
>>>
>>>
>>>
>>
>
>
> --
> Sebastian E. Ovide
>
>
>
>
>


-- 
Sebastian E. Ovide

Reply via email to