I have the following code in a view:
<td>
{{=A(club.companyname,_onmouseover="this.style.cursor='pointer';",\
_onclick="javascript:clublocatordetails('%s')"%URL(r=request,f='details',args=[club.id]))}}
</td>
The javascript clublocatordetails function (in web2py_ajax.html)
resizes the window. I extended the details function:
def details():
....
if not club:
redirect(URL(r=request,c='default',f='error'))
elif club[0].status=='2':
redirect(URL(r=request,f='homepage',args=id))
....
return dict(...)
When a club has status 2 there is a redirect to a different function,
since this function's view is larger I would like to resize the
browser window. The problem is I don't know how to code this and where
the code should go, I hope one of you knows how to solve this problem.
Kind regards,
Annet.