Trying to use SQLFORM forms with Mr. Freeze's web2pyslices clienttools
(which is very easy to use). The resulting clienttools html is
identical to html for the app admin form for the same, the only
difference _id='dialog' is set for use with clienttools . There
appears to be jquery/javascript trapping form posts from #dialog.The
form is displayed in the dialog, as expected with clienttools. When
"submit" I can see a post occur with Firebug but nothing happens on
the controller side. The same was happening just using jqueryui Dialog
without clienttools. Does any on have any experience with the same or
an idea what is happening. The controller looks like:


def add_groups():

    form = SQLFORM(db.groups, _id='dialog', submit_button='Add',
_method='post', _action='')
    if form.accepts(request.vars, session):
        response.flash = 'form accepted'
        records=SQLTABLE(db().select(db.groups.ALL))

    return jq("#clckAddGroups").append(DIV(_id="dialog"))() + \
           jq("#dialog").html(form)() + \
           jq("#dialog").dialog(dict(title="Name of Group",
modal="True", height="400", width="900"))()

Thanks in advance, for any tips or advice. James C.

Reply via email to