Mind that you can also access TAGs by attribute form.element(_id='someid').append(.....)
Massimo On Apr 24, 1:59 pm, jmverm...@xs4all.nl wrote: > Denes, > > > About the asterisks in col3, you have to use your form's field names > > as in: > > col3=dict(initialen='*', naam='*', ...) > > form[0][-1][1].append(INPUT(_type='reset',_value='Reset')) > > form[0][-1][1].append(INPUT(_type='button',_value='Cancel')) > > This all works. The form[0][-1][1] code is much neater than mine. > > About the _onclick attribute: > > form[0][-1][1].append(INPUT > (_type='button',_value='Cancel',_onclick='javascript:location > ('%s')'%URL(r=request,args=[])) > > is all that springs to mind, how do I reference the previous page, > which, as I said , is not in every case the same page. > > > See this recent > > thread:http://groups.google.com/group/web2py/browse_thread/thread/ec7d941c8d... > > At first glance that'll solve the problem, I'll implement it tomorrow. > > 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 web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---