Hi Krista,
can you email me ticket and or the app?

Massimo

On Aug 26, 8:29 pm, klarson <[email protected]> wrote:
> Hello,
>
> I'm trying to create a form in a custom module.  It was originally in
> a controller file and worked fine.  Here's the code:
> form = FORM(TABLE(
>             TR("Contributor:", INPUT(_name="contributor", _size=30,
>                                      _value=values["contributor"],
> requires=IS_NOT_EMPTY(), _title="Your name")),
>             TR("Citation:", TEXTAREA(_name="citation", _rows=4,
> _cols=80,
>                                      _id="citation", value=values
> ["citation"], requires=IS_NOT_EMPTY(),
>                                     _title="The reference for this
> tree")),
>             TR(DIV("Newick string:"),
>                DIV(INPUT(_type="button", _value="Preview",
>                        _onclick="ajax('%s', ['newick'], 'preview')" %
> URL(r=request,f="newick_preview")),
>                        _style="padding-top:1ex", _title="Click to
> preview the tree below"
>                        )),
>                TEXTAREA(_name="newick", _rows=6, _cols=80,
> _id="newick",
>                         value=values["newick"], requires=IS_NOT_EMPTY
> (),
>                         _title=""))
>             ))
>
> Once I moved it to the custom module, all of it works except for the
> the last TR.  The TEXTAREA is fine but the DIV(INPUT()) causes it to
> fail.  I'm importing everything from gluon.html.  What am I missing?
>
> Thanks!
> Krista
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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