Thanks for you replies,
Adding the {{pass}} solved the problem, the following code runs
without errors:
<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>e-mail</td>
</tr>
{{else:}}
<tr>
<td>{{=c}}:</td>
<td>URL</td>
</tr>
{{pass}}
{{pass}}
</table>
However, e-mail and URL should open the mail application and URL
should open the browser and display the linked web site.
The following code results in an error.
replacing e-mail by:
<td>{{=A(communication.adres,_href=URL(mailto:communication.adres))}}</
td>
where communication.adres reads like: [EMAIL PROTECTED]
replacing URL by:
<td>{{=A(communication.adres,_href=URL(http://communication.adres))}}</
td>
where communication.adres reads like: www.mycompany.eu
The error ^ sign marks the : as the cause of the error. How do I build
the e-mail and web URL's without causing this error to occur?
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---