found the culprit now :
<td>
<form>
<input name="{{='quantity_%s' % product.id}}" value="{{=quantity}}"
class="span1"
onkeyup="ajax('{{=URL('purchase_order_callback', vars = dict(id =
product.id,
action = 'adjust_total_price') ) }}',
*['{{='quantity_%s' % product.id}}', '{{='price_%s' % product.id}}']*,
':eval' )" />
</form>
</td>
<td>
<form>
<input name="{{='price_%s' % product.id}}" value="{{=price}}" class="span1"
onkeyup="ajax('{{=URL('purchase_order_callback', vars = dict(id =
product.id,
action = 'adjust_total_price') ) }}',
*['{{='quantity_%s' % product.id}}', '{{='price_%s' % product.id}}']*,
':eval' )" />
</form>
</td>
never thought that the ajax function eval target can be more than one
target form field.
best regards,
stifan
--
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.