[web2py] Re: how to control what A displays while working

2017-02-11 Thread Tim Korb
Thanks for all the suggestions. I was able to make the "disable_with" solution work with an IMG by converting it to xml before storing, e.g., _disable_with=IMG(_src=URL('static', 'images/spinner.gif')).xml() so I'm all set. -- Resources: - http://web2py.com - http://web2py.com/book (Docu

[web2py] Re: how to control what A displays while working

2017-02-08 Thread Paolo Caruccio
You could try with css. 1. assign to the component trigger a specific class for example "link_with_loader" A(IMG(_src=image), _href=URL('default', 'getit'), _class="link_with_loader", user_signature=True, cid=request.cid) 2. since web2py adds the "disabled" class to the component trigger whe

[web2py] Re: how to control what A displays while working

2017-02-08 Thread Anthony
On Wednesday, February 8, 2017 at 12:57:00 PM UTC-5, Tim Korb wrote: > > That's good, but it apparently only accepts text as the replacement. I > really want to have an IMG being displayed. Yeah, you'll have to implement that yourself. -- Resources: - http://web2py.com - http://web2py.com/b

[web2py] Re: how to control what A displays while working

2017-02-08 Thread Tim Korb
That's good, but it apparently only accepts text as the replacement. I really want to have an IMG being displayed. -- 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 Is

[web2py] Re: how to control what A displays while working

2017-02-08 Thread Anthony
On Tuesday, February 7, 2017 at 10:54:45 PM UTC-5, Tim Korb wrote: > > Thanks, I'll look at that. Maybe a content= parameter to A(...) would be > useful, analogous to the one for LOAD(...). > Actually, you can do: A(IMG(_src=image), _href=URL('default', 'getit'), user_signature=True, cid= requ

[web2py] Re: how to control what A displays while working

2017-02-07 Thread Tim Korb
Thanks, I'll look at that. Maybe a content= parameter to A(...) would be useful, analogous to the one for LOAD(...). -- 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

[web2py] Re: how to control what A displays while working

2017-02-07 Thread Leonel Câmara
In your web2py_ajax.html view there's a w2p_ajax_disable_with_message you can change it there. -- 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 receiv