[web2py] Re: Show busy during AJAX?

2015-03-21 Thread cem
I prefer to use the below scripts; $(document).ajaxStart( function () { $(.aloading).show(); }); $(document).ajaxStop( function () { $(.aloading).hide(); }); put somewhere above body for example; div class=aloading/div and css .aloading { display: none;

[web2py] Re: Show busy during AJAX?

2015-03-19 Thread Derek
eh, use an animated gif... http://www.ajaxload.info/ gotta love their license... On Thursday, March 19, 2015 at 5:00:31 PM UTC-7, Dave S wrote: On Wednesday, March 18, 2015 at 10:18:23 PM UTC-7, Dave S wrote: On Wednesday, March 18, 2015 at 7:26:35 PM UTC-7, Leonel Câmara wrote:

[web2py] Re: Show busy during AJAX?

2015-03-19 Thread Dave S
On Thursday, March 19, 2015 at 5:23:52 PM UTC-7, Derek wrote: eh, use an animated gif... http://www.ajaxload.info/ gotta love their license... Interesting indeed! /dps On Thursday, March 19, 2015 at 5:00:31 PM UTC-7, Dave S wrote: On Wednesday, March 18, 2015 at 10:18:23 PM

[web2py] Re: Show busy during AJAX?

2015-03-19 Thread Dave S
On Wednesday, March 18, 2015 at 10:18:23 PM UTC-7, Dave S wrote: On Wednesday, March 18, 2015 at 7:26:35 PM UTC-7, Leonel Câmara wrote: fontawesome has spinner icons you can use that don't even need javascript because they use css transitions. Although they don't have an hourglass you

Re: [web2py] Re: Show busy during AJAX?

2015-03-18 Thread António Ramos
i do like this dom event onclick=$('drop_html_here').html(wait!!!);my_ajax_function(); script function my_ajax_function(){ call your ajax function this function should return some html to replace your initial wait!!! /script 2015-03-18 2:38 GMT+00:00 Leonel Câmara leonelcam...@gmail.com:

[web2py] Re: Show busy during AJAX?

2015-03-18 Thread Leonel Câmara
fontawesome has spinner icons you can use that don't even need javascript because they use css transitions. Although they don't have an hourglass you can check them here check http://fontawesome.io/examples/#animated I've found an ugly hourglass:

Re: [web2py] Re: Show busy during AJAX?

2015-03-18 Thread Dave S
On Wednesday, March 18, 2015 at 3:11:26 AM UTC-7, Ramos wrote: i do like this dom event onclick=$('drop_html_here').html(wait!!!);my_ajax_function(); script function my_ajax_function(){ call your ajax function this function should return some html to replace your initial wait!!!

[web2py] Re: Show busy during AJAX?

2015-03-18 Thread Dave S
On Wednesday, March 18, 2015 at 7:26:35 PM UTC-7, Leonel Câmara wrote: fontawesome has spinner icons you can use that don't even need javascript because they use css transitions. Although they don't have an hourglass you can check them here check http://fontawesome.io/examples/#animated

Re: [web2py] Re: Show busy during AJAX?

2015-03-18 Thread Dave S
On Wednesday, March 18, 2015 at 6:31:08 PM UTC-7, Dave S wrote: On Wednesday, March 18, 2015 at 3:11:26 AM UTC-7, Ramos wrote: i do like this dom event onclick=$('drop_html_here').html(wait!!!);my_ajax_function(); script function my_ajax_function(){ call your ajax function

[web2py] Re: Show busy during AJAX?

2015-03-17 Thread Leonel Câmara
Yeah, just insert an element into the dom with it and then remove or hide it when the ajax call is done. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) ---