>
> But I'm not sure how to tie this all together. The anchor tag needs an 
> onclick which points to the function add_item() in util.js. The util.js 
> should execute that function and do a post to the web2py controller, which 
> would then do an insert into the database. Could someone help me out? Or is 
> this not the ideal way of handling javascript data -> web2py?
>

Everything you want to do here except the javascript event binding is 
encapsulated in this plugin:

code.google.com/p/plugin-clientapi

You only need to link the user click to a custom event to retrieve the 
form, submit it and get the server feedback.

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to