I just upgraded to 1.81.5 because I'm hoping the ajax checkbox upgrade
is in there. Here's my scenario:
# view
DIV(_id='test')
INPUT(_name='box1',_type='checkbox',_value=False,
_onclick="ajax('test',['box1'],':eval');",
_id='box1'
)
#controller
def test():
return 'jQuery("#test").html("%s");' % clean_str(BEAUTIFY(request))
... where clean_str() escapes quotes and other such stuff.
Now, when I click the box1 checkbox so that it is checked, I see
vars : box1 : on
Next, when I click box1 so that it is unchecked, I get exactly the
same thing
vars : box1 : on
It would have been much nicer if box1 showed up as "off".
Bottom line, I need the state of box1 to be sent to the controller. Am
I doing something wrong that I can't see the right state?