On Friday, July 17, 2015 at 1:05:15 AM UTC-7, [email protected] wrote:
>
> How by using A helper callback sen a data from inputs??
>
> <input type="text" name="search" />
> {{=A('Search', callback=URL('list', vars={'search'}),
> target='t', _class='button white-bgc')}}
>
>
> IF do by _onclick="ajax('list',['search], 't')" - how disable button and
> show "Working..." message in button?
>
I do something different:
TAG.BUTTON('item list', _type="button", _name="whoami", _value=whoami,
_onclick='$("#my_items").html("updating
..");ajax("items.load", ["whoami","gname"], "my_items")',
_style="display:none", _id="list-a"))
(This is a quick clip out of a longer string; my controller returns a bunch
of HTML for this function.)
Note that I'm not using an input, I'm just using a load component.
/dps
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.