Looking for a framework
I've been playing around with some stuff here to learn javascript, and the more I've been doing it the more I've been reading about frameworks.At this point, I think that I'm writing way too much code...
View ArticleRe : What are some techniques to improve performance?
For static content (with many elements in it), when HTML that should be rendered and put in DOM as soon as possible plain JS with strings is though unclean but the best solution, but that is really for...
View ArticleRe : Looking for a framework
You should use canJs.You should look for fiddles end examples on canjs.com. Take for example this simple fiddle http://jsfiddle.net/xKc3H/339/ and try to understand how it works.
View ArticleRe : Looking for a framework
Well it is your choose, you may also look at AngularJs and EmberJs that are decent options for CanJs. I think that currently AngularJS is more comparable with CanJs in terms of common approaches to...
View ArticleRe : Working with requirejs
It looks as if you are using a custom download instead of the actual AMD version that you can find in the big download or Bower component in the AMD folder. As one of the few frameworks CanJS actually...
View ArticleRe : Looking for a framework
From my point of view you could try to use either CanJS or ReactJS. Both are relatively lightweight. Although ReactJS doesn't have all features and is basically a "view", it might be more than enough...
View ArticleRe : Looking for a framework
Let me try to shed light on what I'm trying to do in the short term. I feel like i'm writing way too much code in the js and html so I was thinking that a framework would help. The general point of...
View ArticleRe : Looking for a framework
You can easily implement with can.js.First thing you should understand about can.js (and high lever other libs/frameworks) the it emphasis the approach when you don't do manual manipulation with DOM....
View ArticleMissing doc.bat in documentjs
I've recently downloaded and installed JMVC 3.3. I can't find documentjs/doc.bat to generate docs (as described here: http://v3.javascriptmvc.com/docs/DocumentJS.html#&who=DocumentJS). Also on...
View Articlecan.Component: dynamic attribute values binding to scope
Hello.I have a sample component, which wraps <img> and hides it if provided URL is broken: define(['can/component'], function(Component) { return Component.extend({ tag:...
View ArticleRe : can.Component: dynamic attribute values binding to scope
From the can.Component docs at http://canjs.com/docs/can.Component.prototype.scope.html If you want the literal string value of the attribute instead of the attribute's value looked up in the parent...
View ArticleSubclassing a can.component?
Is there a way to sub-class or extend can.components in canjs?Basically, I want to have sort of a base class for my can.components. The base class would listen to an observable, and call custom methods...
View ArticleSorting out all the Lists and sorts
Is can.Map.List the same thing as can.List?When I first read through the docs, I assumed them to be the same thing - especially since there are no docs for can.Map.List.Adding to the confusion is the...
View ArticleRe : Sorting out all the Lists and sorts
I answered this a little bit here: https://github.com/bitovi/canjs/issues/931Short answer, do not use can/map/list. It will be gone or replaced in 3.0. Something similar might happen to can/map/sort,...
View Articleevent handling: this variable and arbitrary data
I'm using can.bind to listen to a can.map's change attribute event.It is working fine, the event handler function gets called.However, the "this" variable doesn't seem to point to the can.component in...
View ArticleRe : event handling: this variable and arbitrary data
In events, this should be the component. Do you mean you want to access the scope? You can write this.scope within the events object's functions to talk to the scope and its data.You probably don't...
View ArticleRe : Missing doc.bat in documentjs
That site is out of date. You should be using:http://javascriptmvc.com/docs/ for documentation.
View ArticleRe : Subclassing a can.component?
There's not a simple way to subclass a can.Component (unlike a can.Control).Most of your component logic should be in the scope. You can define the scope as a Map constructor and subclass that.
View Article