In my View i request multiple forms which work at a glance:
{{for j in jms:}}
{{=H3(j[1])}}
{{=LOAD(c='team', f='jmform.load', args=[j[2]], ajax=True,
content='Übertragung
läuft...', user_signature=True)}}
{{pass}}
The form includes an ajax function:
js = "ajax('../../evlist', ['jmid','pid'], 'events')"
form = FORM(INPUT(_name='titel', requires=IS_NOT_EMPTY(), _onclick=js),
TEXTAREA(_name='bemerkung', _class='text', _onclick=js),
INPUT(_name='jmid', _value=ev.JM, _type='hidden'),
INPUT(_name='pid', _value=ev.parent, _type='hidden'),
INPUT(_type='submit'), _name=evid, _id=evid)
unfortenatly the ajax function is iterating over all hidden INPUT fields in
the document and collecting an array of results instead of [jmid, pid] in
the calling form.
[How] Could I restrict the ajax function to the single form it belongs to?
Or is this
Thanks a lot!
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.