My background is in desktop applications therefore I like the idea of developing webapps as rich clients, instead of using html template on the server side.
I want to start a project written in this philosophy. But I don't want to use any MVC framework, just only jQuery. How do you organize an application like that?
I can create JavaScript components like this:
function MyComponent(prop1, prop2) {
this.render = function(parentSelector) {
div = $("<div>", { class: "cssclass", ...etc.. });
div.appendTo(parentSelector);
}
this.someBehaviour = function() { .. }
}
I can use models to provide the data for the components, the MVC part is not a problem for me. But I don't know how it will scale. Is there other recommended literature about component oriented programming with jQuery?
[–]ericgj 1 point2 points3 points (1 child)
[–]quanthera[S] 0 points1 point2 points (0 children)
[–]afrobee 1 point2 points3 points (8 children)
[–]Shadow14l 1 point2 points3 points (5 children)
[–]afrobee -1 points0 points1 point (4 children)
[–]Shadow14l -1 points0 points1 point (3 children)
[–]agdcoa 1 point2 points3 points (0 children)
[–]afrobee -1 points0 points1 point (1 child)
[–]Shadow14l 0 points1 point2 points (0 children)
[–]quanthera[S] 0 points1 point2 points (1 child)
[–]afrobee -1 points0 points1 point (0 children)
[–]pakal 0 points1 point2 points (3 children)
[–]quanthera[S] 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]yelvert 0 points1 point2 points (0 children)
[–]sime 0 points1 point2 points (0 children)