Change that to

  el.text = "Working...";





On Sunday, October 11, 2015 at 4:20:58 AM UTC-4, Gary Cowell wrote:
>
> Hello. 
>
> I'm trying to give the user some feedback when they click on a links (link 
> button) in the links section of a sqlform grid.
>
> I have this button code:
>
>    button = A(
>             SPAN(_class="icon play icon-play glyphicon glyphicon-play")
>             ,"Start"
>             ,_id="startstop"
>             ,_class="button btn btn-success"
>             ,_title="Start"
>             ,_onclick="return change(this);"
>             ,_href=URL("dynamic","startstop",
>                 args=[system.id, buttonURL, buttonTitle, db.e5system] , 
> user_signature=True )
>             )
>
>
> And this script in my view:
>
> <script type="text/javascript">
> function change( el )
> {
>     el.value = "Working...";
> }
> </script>
>
>
> But nothing happens when I click the button.
>
> I've tried many bits of javascript over the last few days and I'm getting 
> nowhere fast.
>
> Can someone kindly give me a steer on what to do ?
>
> Thanks
>

-- 
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