I'm revisiting this again. Think it should be possible with a javascript onclick action, but how can I do this from within my A( helper ?
My problem with using web2py I think, is that I'm a python programmer who's trying to write apps that run on web pages, but I know very little html/javascript. Going to keep trying for a solution to this. On Saturday, 25 July 2015 01:40:53 UTC+1, Anthony wrote: > > I think that is set up to work only with links that fire Ajax requests or > submit buttons in forms. > > On Friday, July 24, 2015 at 4:52:24 PM UTC-4, Gary Cowell wrote: >> >> I have a SQLFORM grid with some buttons in the LINKS : >> >> >> <https://lh3.googleusercontent.com/-USA-OMFbJNY/VbKb1nosPcI/AAAAAAAA2Vc/usFqvdAFyiI/s1600/links.png> >> They are generated thus: >> >> def makeButton( ... ) >> >> >> ... >> >> >> if result == 0: >> status = 'Up' >> buttonTitle='Stop' >> buttonURL='stop' >> buttonClass='button btn btn-danger' >> buttonIcon='icon stop icon-stop glyphicon glyphicon-stop' >> elif result == 2: >> status = 'Not Built' >> buttonTitle='Not Built' >> buttonURL='build' >> buttonClass='button btn btn-info' >> buttonIcon='icon play icon-play glyphicon glyphicon-play' >> else: >> status = 'Down' >> buttonTitle='Start' >> buttonURL='start' >> buttonClass='button btn btn-success' >> buttonIcon='icon play icon-play glyphicon glyphicon-play' >> button = A( >> SPAN(_class=buttonIcon) >> ,buttonTitle >> ,_class=buttonClass >> ,_title=buttonTitle >> ,_href=URL("dynamic","startstop", >> args=[system.id, buttonURL, buttonTitle, db.e5system] , >> user_signature=True ) >> ) >> return button >> >> >> >> >> What do I need to add so that when I press my buttons, it (they) change >> to dim and show 'Working' like with other web2py buttons? >> >> Thank you for help >> >> >> -- 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.