--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<TABLE>
/* thead stuff */
{{if datalist[3] == 0:}}
{{errstat = IMG(_src=URL('static', "images/greenlite.png"), _alt="Green Traffic Light Picture")}}
{{else:}}
{{errstat = IMG(_src=URL('static', "images/redlite.png"), _alt="Red Traffic Light Picture")}}
{{pass}}
{{=TR(/* various fields */, TD( A(errstat,_href=URL('detailinfo.html',
vars=dict(var1=datalist[1], var2=datalist[0])))))
}}
</TABLE>
clicking
on the image takes you to a page that gives you more detail. You could
make that be an AJAX call if you wanted the details to be shown in a
DIV on the current page.