[web2py] Re: AJAX div reload indicator

2015-04-27 Thread Dave S
On Saturday, April 25, 2015 at 8:28:15 AM UTC-7, Gary Cowell wrote: > > I found that I can use: > > {{=LOAD('tenant','stackList.load',ajax=True, target="stackList",vars={ > 'reload_div':'stackList'},content=CENTER(IMG(_src=URL(request.application, > 'static','images/ajax_loader_blue_256.gif'}

[web2py] Re: AJAX div reload indicator

2015-04-25 Thread Gary Cowell
I found that I can use: {{=LOAD('tenant','stackList.load',ajax=True, target="stackList",vars={ 'reload_div':'stackList'},content=CENTER(IMG(_src=URL(request.application, 'static','images/ajax_loader_blue_256.gif'}} So this gives me a spinner gif inside my component div on page reload. It doe

[web2py] Re: AJAX div reload indicator

2015-04-25 Thread Gary Cowell
I think I found my solution, in my controlling function when I send the response.js for the reload, I'm doing it like this now: spinner=CENTER(IMG(_src=URL(request.application,'static', 'images/ajax_loader_blue_256.gif'))) response.js = "jQuery('#stackList').html('{0}');jQuery('#

[web2py] Re: AJAX div reload indicator

2015-04-25 Thread Gary Cowell
I've tried twice before to post my solution on this, but here's a third try: So I solved this for my app, in the following way. For reference for others, and for comment if I'm doing something stupid. But, this works for me: In my view: {{=LOAD('tenant','stackList.load',ajax=True, target="stack