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)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
i do like thisdom eventonclick="$('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 <leonel...@gmail.com>:Yeah, just insert an element into the dom with it and then remove or hide it whe
n the ajax call is done.
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
On Wednesday, March 18, 2015 at 3:11:26 AM UTC-7, Ramos wrote:i do like thisdom eventonclick="$('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>
Thank you. This works pretty well, when I put the ID of the target div in the $("...").
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
The spinner, at least, does require javascript, but since I'm doing AJAX I do have javascript enabled.
I like those icons, too.
I don't think that's ugly. Not quite as pretty as the other spinners, but not ugly.
Thank you!