________________________________________ Kiran Subbaraman http://subbaraman.wordpress.com/about/
--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Dear Anthony, Kiran and Johann,
Thanks for the responses.
I'll be keeping track of the work that i do on this subject on myblog at this post. If you or any other web2py-users group members have any
comments or suggestions you can share them there or here.
As of now i have added 2 comments on the blog to my original post.
1. i looked up web2py component
By def it seems that components
communicate with the component controller function via Ajax
Therefore the list of dependencies must contain ajax stuff.
2. add a new component to list:
navbar – is a complex component containing both menu and auth-login components.
________________________________________ Kiran Subbaraman http://subbaraman.wordpress.com/about/
Dear Anthony, Kiran and Johann,
Thanks for the responses.
I'll be keeping track of the work that i do on this subject on myblog at this post. If you or any other web2py-users group members have any comments or suggestions you can share them there or here.
As of now i have added 2 comments on the blog to my original post.1. i looked up web2py component
By def it seems that components
communicate with the component controller function via Ajax
Therefore the list of dependencies must contain ajax stuff.
2. add a new component to list:
navbar � is a complex component containing both menu and auth-login components.
Thanks again for a GREAT framework.
Love and peace,
Joe
On Saturday, November 9, 2013 10:52:49 AM UTC-8, JoeCodeswell wrote:Dear web2py Forum,
Often i find myself making View pages that are NOT derived from layout.html and yet wanting to include some aspects of its capabilities.
I thought the web2py "Component" concept might help to deliver a modular approach.
My initial thoughts would be to pair small CSS files and HTML Component definitions for the following:
while maintaining a list of dependencies among them.
- menu
- login/register
- left sidebar
- right sidebar
- footer
- ajax
- flash response
- mobile
- responsive
Has anyone thought about this granular approach before?
I would not want to use a Wizard for this, because in my experience, the generated code is unfamiliar to me and difficult to customize.
Thanks for a GREAT framework.
Love and peace,
Joe
Joe,
It is probably a good idea to capture this in the web2py bug tracker as an enhancement request.
________________________________________ Kiran Subbaraman http://subbaraman.wordpress.com/about/
My view is:
Splitting / refactoring the contents of the layout.html into 'components' - which contains a combination of css + html as mentioned in the original note: https://groups.google.com/forum/#!topic/web2py/3NmrocjbwzM
________________________________________ Kiran Subbaraman http://subbaraman.wordpress.com/about/
You can use LOAD(..., ajax=False).
Yep, ajax is fun but having a page with 64 ...
As far as I am concerned, as long as Components provide modularity, they can use Ajax or NOT as a matter of performance choice.
I am not saying web2py should become a SPA framework, just a "frendlier" option for these use-case's starting point.
If there are 64 loadings it would become quite slow to start, but that would be true for any framework... It doesnt mean that it wouldn't be helpfull to do, say, 5 to 10 loadings...
The initial loading time would be easially compensated by the rest of the use of the app loading only the components that change to other ones (even in a non-SPA would benefit, by loading cached-versions). Otherwise the whole SPA movement would not have emearged.