I'm pretty sure you can pass the 'input' function a _
data-loading-text="Loading..."

I believe that anything with an underscore in front of it gets added as an 
attribute. You could do it like this...

INPUT(_type='submit', _data-loading-text="Loading...", _cheese="Casu marzu")
and your input tag will be on the page like so:
<input type='submit' data-loading-text="Loading...", cheese="Casu marzu">

On Wednesday, April 23, 2014 6:48:23 AM UTC-7, LoveWeb2py wrote:
>
> Hello,
>
> I'm using the form=FORM('Search text:', INPUT(_name='texttofind', 
> INPUT(_type='submit')) which generates a button and a search field on a web 
> page when I type {{=form}}
>
> How can I change the button to "loading" when a user clicks it
>
> I found this documentation on jquery 
> http://getbootstrap.com/2.3.2/javascript.html#buttons but I'm not sure 
> how to assign it to the button.
>
>
>
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to