i have this autorefresh form = SQLFORM.factory(Field('AutoUpdates', requires=IS_IN_SET(['On','Off']),default="On", widget=SQLFORM.widgets.radio.widget)) refresh.ready(jq("input[type='submit']").hide()()) callback = js.call_function(timer_tick) refresh.ready(js.timer(callback,10000)) event.listen('change',"input[name='timer']",timer_tick)
the thing is i want to call the function timer_tick with an argument and the use it like this def timer_tick(arg): arg_passed=arg How I do the js.call_function() and the event.listen() ?