>
> The :eval method of the ajax() function requires that there is a form 
> field holding the value to be sent by ajax.
>

When calling ajax(), it is not necessary to send any data via a form field 
(the value of the second parameter can simply be an empty list).
 

> So in your view you could just include in INPUT() helper somewhere on the 
> page and hide it via css. 
>

Instead of doing that, when constructing the links themselves, just add the 
relevant id to the href URL -- the action called via Ajax can then pull the 
id from request.args.
 

> In the controller you can remove the item from your list and then do
>
> response.js = 
> "web2py_component('path/to/view.load','id_of_component_container');"
>

response.js is only used when a component is called via web2py_component(). 
If using the ajax() function with the ":eval" target, just return the 
Javascript directly:

    return '[your Javascript code]'

Anthony

Reply via email to