Even better!
Thank you Anthony.

On Monday, May 20, 2013 9:17:05 AM UTC-7, Anthony wrote:
>
> I hope that the document was better, it is somewhat lacking on this area.
>
>
> The book does indicate that the second argument to the ajax() function 
> takes a list of names of input fields (not arbitrary HTML element id's) -- 
> it is meant to serialize form inputs. Anyway, there is a simpler approach:
>
> $(document).ready(function(){ 
>   $("tr").click(function(){
>     var sid =  $(this).find('td').eq(0).text();
>     ajax('update_job_items?selected_jobs=' + sid, [], 'job_items_grid');    
>   }); 
> });
>
> Just leave the second argument to ajax() empty, and instead add the 
> selected_jobs variable directly to the URL. No need to populate a hidden 
> element.
>
> Anthony
>

-- 

--- 
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.


Reply via email to