Re: [web2py] Re: ajax function submit on script

2011-04-28 Thread Stifan Kristi
thank you so much for your correction, massimo. it runs right now with: jQuery(document).ready(function(){ jQuery('.view').click(function(){jQuery('.comments').slideToggle()}); jQuery('.post').click(function(){jQuery('.form').slideToggle()}); jQuery('.post').submit(function(){ajax('{{=r

[web2py] Re: ajax function submit on script

2011-04-28 Thread Massimo Di Pierro
yes but the syntax is incorrect: ajax('blog_show', 'comments hidden') should be ajax('blog_show', [], 'target_id') On Apr 28, 8:58 am, 黄祥 wrote: > hi, > > is it possible to put ajax function submit on script? > e.g. > > jQuery(document).ready(function(){ >     jQuery('.view').click(func