It is not clear what you are trying to achieve. Can you explain the real world scenario you are trying to implement? What is the exact workflow? Does someone view a single page, and some content on that page needs to update every 30 minutes?
Anyway, regarding your current code, as already mentioned, the function called via Ajax should be like any other function. Calling "print" inside a controller function is useless, as it has no effect on the HTML output (it will simply print to the console). Anthony On Tuesday, July 12, 2016 at 9:47:44 AM UTC-4, Chetan Jain wrote: > > URL : https://pqr.pythonanywhere.com/ajax/default/index > > Best, > Chetan Jain > > On Tue, Jul 12, 2016 at 6:07 PM, Massimo Di Pierro < > [email protected]> wrote: > >> It is not clear. Where is your app? >> >> >> On Tuesday, 12 July 2016 06:32:29 UTC-5, Chetan Jain wrote: >>> >>> Hi Anthony, >>> >>> i've created one 24 hours web2py application at pythonanywhere.com, >>> please let me know when you have 10-15 minutes of time, so that i can >>> rectify my problem. >>> Thanks in advance. >>> >>> >>> >>> >>> On Tue, Jul 12, 2016 at 7:43 AM, Anthony <[email protected]> wrote: >>> >>>> If your view includes an {{=i}} variable, then your function must >>>> return a dictionary with "i" as one of its keys. Hard to say what's wrong >>>> without seeing the current version of this function. >>> >>> >>> >>> >>> Best, >>> Chetan Jain >>> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> 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/d/optout. >> > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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/d/optout.

