I have got the following code in a view: <div id="cardright"> <table> {{for communication in communications:}} <tr> <td>{{=communication.communicatiemiddel}}:</td> <td>{{=communication.adres}}</td> </tr> {{pass}} </table> </div>
which displays, telephone numbers, e-mail addresses etc. in a table. Now, I want to display the e-mail addresses and URLs as links instead of just text. I tried this: <table> {{for communication in communications:}} {{c=communication.communicatiemiddel}} {{if c=='T' or c=='F' or c=='M':}} <tr> <td>{{=c}}:</td> <td>{{=communication.adres}}</td> </tr> {{elif c=='E':}} <tr> <td>{{=c}}:</td> <td>{{=A(communication.adres,_href=URL(communication.adres))}}</td> </tr> {{else:}} <tr> <td>{{=c}}:</td> <td>{{=A(communication.adres,_href=URL(communication.adres))}}</td> </tr> {{pass}} </table> however, this results in a SyntaxError. According to page 116 of the web2py manual, something like this should work. Does one of you know why I get a SyntaxError on this code. Best regards, Annet. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---