Anthony and Jonathan, Thanks for your replies. I am considering this option:
> ... Or, when the user clicks the link, you could fetch the timetable via > HTML and replace the text/image with the returned timetable (it should be > easy with the ajax() function -- just put the text/image in a div, and > specify that div as the target for the returned ajax request). The main reason being that in the future I might add more functionality this way (event list, news, etc) Would it be possible to have the business card function with its corresponding view, and a separate function that initially gets the image and text and when the visitor clicks the timetable link, a function that gets the timetable and a link to the image and text bit to return to the business card. Anthony, I have only used the ajax function to generate a custom form, could you provide me with a bit more information of how to use the function in this case. This is the layout I am using I marked the image and text bit and the link with ## {{extend 'layout.html'}} <div id="container" class="radius_top"> {{if logo:}} <div id="header" class="radius_top" style="height: 108px;"> ... </div> <!-- header --> {{elif tagline:}} <div id="header" class="radius_top" style="height: 60px;"> ... </div> <!-- header --> {{else:}} <div id="header" class="radius_top" style="height:36px"> ... </div> <!-- header --> {{pass}} ## this bit should be replaced with the timetable {{if image:}} <div id="banner" style="text-align:center; height: 120px;"> ... </div> <!-- banner --> {{pass}} {{if text:}} <div class="oneColLayout"> ... </div> <!-- oneColLayout --> {{pass}} ## ends here. <div class="twoColLayout"> <div class="sidebar_left"> {{if address:}} ... {{pass}} </div> <!-- sidebar_left --> <div class="sidebar_right"> {{if nfas:}} ... {{pass}} </div> <!-- sidebar_right--> </div> <!-- twoColLayout --> ## here the link to the timetable (and later to the business card) <div id= "footer"> {{=A('Lesrooster',_href=URL('timetable','timetable',args=[company.id]))}} </div> <!-- footer --> </div> <!-- container --> Kind regards, Annet. Annet.