On Jun 1, 12:08 pm, mdipierro <[email protected]> wrote:
> This is very strange I fixed it and I am uploading the fix to trunk
> but I do not understand it.
> It seems that if INPUT() is false (?!)

that's weird.
I found it works it I do SPAN(INPUT(...))

>
> You can use TAG.BUTTON(...)

thanks!


>
> On May 31, 7:25 pm, Richard <[email protected]> wrote:
>
> > hello,
>
> > I am using the col3 argument to SQLFORM to add some data:
> > button = INPUT(_type='button', _value='test')
> > link = A('test', _href=URL(r=request, f='test'))
> > col3 = dict(name=button, project=link)
> > form = SQLFORM(db.model, col3=col3)
>
> > Strangely this works for links but not inputs. Inputs are not included
> > in the form - is there a reason for this? I am trying to add a button
> > to the form.
> > For now I am using the form[0][0][2].append(...) syntax but would
> > prefer to use the cleaner col3 argument.
>
> > Incidentally, could a HTML helper be added for BUTTON()? The CSS file
> > I use assumes I am using <button> rather than <input type='button'>.
>
> > thanks,
> > Richard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to