I have:

in view:
<select id="treeCb" name="treeCb" onchange="ajax('/init/data/
treeCbChange', ['treeCb']);"><option value="111">111</option><option
value="222">222</option></select>

in control:

def treeCbChange():
        try:
                redirect(URL(r=request, f='index/'+request.vars.values()[0]))
        except:
                print 'error'

But it can't redirect (it print 'error').

How am I supposed to do it?
Regards
Toan

-- 
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