Has web2py.js loaded properly? If you check the browser developer tools, is 
the Ajax request getting sent, and if so, what is the response? Any JS 
errors in the browser console?

Anthony

On Saturday, April 9, 2016 at 3:16:56 AM UTC-4, Alex Glaros wrote:
>
> I cannot get load results to appear on html page.  Only the word "
> loading..." appears
>
> CONTROLLER
> def post():
>     comments=db(db.SuperObjectComment).select()
>     return locals()
>
> LOAD DOCUMENT (named: post.load)
> {{for post in comments:}}
> <div class="post">
>   On {{=post.created_on}}
> </div>
> {{pass}}
>
> WHEN BROWSING TO http://127.0.0.1:8000/ES1/default/post.load, THE RESULTS 
> ARE CORRECT
> On 2016-04-08 01:12:09
> On 2016-04-08 11:16:37
> On 2016-04-08 12:34:05
> On 2016-04-08 19:47:51
> On 2016-04-08 20:03:03
>
> HTML PAGE (named post.html but also tried from other pages)
> {{extend 'layout.html'}}
> {{=LOAD('default','post.load',ajax=True)}}
>
> The only result is the word: loading...
>
> THE PAGE SOURCE SHOWS:
> <section id="main" class="main row">
>
> <div class="span12">
> <div data-w2p_remote="/ES1/default/post.load" id="c245896991304">
> loading...</div>
> </div>
>
> </section><!--/main-->
>
> Thanks,
>
> Alex Glaros
>
>
>
>
>

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

Reply via email to