[web2py] Re: How to get field values before form.accepts(...) [digression]

2011-01-04 Thread mdipierro
We have that form.element(...) form.elements(...) both take jQuery syntax. Massimo On Jan 4, 10:13 am, Jonathan Lundell wrote: > On Jan 4, 2011, at 7:19 AM, annet wrote: > > > > > Thanks for your reply. I tried: > > > form[0][2][2].insert(0,A('already in > > database?',_onmouseover="this.style

[web2py] Re: How to get field values before form.accepts(...) [digression]

2011-01-04 Thread mdipierro
yes. instead of form[0][2][2].insert(0,...) use form.element('#table_field__row TD.w2p_fc').insert(0,...) Not sure it is easier in this case. table_field__row is the id of the row for table.field w2p_fc is the class name of the comment column. Massimo On Jan 4, 11:32 am, Jonathan Lu

Re: [web2py] Re: How to get field values before form.accepts(...) [digression]

2011-01-04 Thread Jonathan Lundell
On Jan 4, 2011, at 7:19 AM, annet wrote: > > Thanks for your reply. I tried: > > form[0][2][2].insert(0,A('already in > database?',_onmouseover="this.style.cursor='pointer';",_onclick="javascript:details('%s/'+ > $('#kvk_number').val()+'/'+$ > ('#subdossiernumber').val())"%URL(r=request,f='retrie

Re: [web2py] Re: How to get field values before form.accepts(...) [digression]

2011-01-04 Thread Jonathan Lundell
On Jan 4, 2011, at 8:26 AM, mdipierro wrote: > > We have that > > form.element(...) > form.elements(...) > > both take jQuery syntax. So the construction below can be expressed that way? > > Massimo > > On Jan 4, 10:13 am, Jonathan Lundell wrote: >> On Jan 4, 2011, at 7:19 AM, annet wrote: