Hi,
On 28/02/13 08:13, 黄祥 wrote:
1. if i use sqlform.factory the submit button will be automatic
generated but not used it, isn't it?
You can customise that, as per the custom forms section in the book.
2. if using form custom, the form action can't be modified, because i
want to add and store the user input quantity in the field and it's
prodcut id using callback?
The form will submit to itself (e.g. the controller function behind the
LOAD), which is what you want if you are suing SQLFORM.
3. if back to ajax again using component , why not using callback in the
a html built in helper, at the first time? like my code above
Prior to your user selecting a quantity and clicking submit, the form
can be qty. field + button. After the user clicks submit, you can code
what to display next.
Have you experimented with LOAD and components?
--
Regards,
PhilK
'a bell is a cup...until it is struck'
--
---
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.