I have a form with a dummy checkbox:

#view
INPUT(_type='checkbox',_name='junk',_id='no_table_junk'),
        _onclick="ajax('process_checkbox',
['no_table_junk'],':eval');")

#controller
def process_checkbox():
  checkbox_results=request.vars['no_table_junk']
  return """jQuery("#test").html("%s");""" % checkbox_results

Regardless of whether the checkbox is checked or not, the onclick
event passes to the "process_checkbox" routine a
request.vars['no_table_junk'] equal to 'on'. I would have expected it
to toggle from "on" to "off" to "on" again as I keep toggling the
checkbox from checked to unchecked.

Anybody know what's wrong?

Reply via email to