How to demonstrate LOAD() working properly?

36 views
Skip to first unread message

Tom Campbell

unread,
Oct 2, 2015, 7:05:24 PM10/2/15
to web2py-users
I am working on a simplified single-page app demo. I think I have it working, but I'm not sure because I need to demonstrate that only part of the page is reloading. Most of the code is shown in this post:

https://mail.google.com/_/scs/mail-static/_/js/k=gmail.main.en.Pryf_O7ZHDs.O/m=m_i,t/am=PiM-ZGD_3_uDWGcIoF3ySIW999_vLil2_-Hx_3sQQbJXAP8A-H8A_wEvRF9I/rt=h/d=1/t=zcms/rs=AHGWq9CcTajC8VF4OQk0ZBX1nqhzCmoSzQ

Despite using LOAD() and seeing the correct XHR requests being made in the Javascript console, reloads seem to occur exactly as often as if I didn't use LOAD().

What is the best way to demonstrate that LOAD() is only loading partial pages on demand, and that the static portion is not being reloaded?

pn

unread,
Oct 2, 2015, 7:21:23 PM10/2/15
to web2py-users
Hi, the link you posted shows a blank page. I think you may have copy-pasted from inside an email that requires you to have been logged in, try visiting the link and copy-pasting from the browser URL. Or maybe provide the example of your app by uploading it to github/bitbucket.

Tom Campbell

unread,
Oct 2, 2015, 7:57:53 PM10/2/15
to web...@googlegroups.com
Ugh, this is not my week. I'm working on a complete sample app & will post it ASAP. Thanks, and sorry.

--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/dRrvLGtjsr0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages