Are two way bindings happening?
First of all CanJS is a great framework, there is so much I love about it. But there is one thing that is killing me. That is two way bindings in form fields (the lack of).At the moment the canonical...
View ArticleRe : I thought change to an input text box in view can reflect back to the...
No, unfortunately, you have to listen to the change event on the input.See working example herehttp://jsfiddle.net/sporto/qQdZh/16/
View ArticleIs there a way to write {{a()}} or {{foo.attr("bar")}} in Mustache or...
I found that if `a` is a `can.compute()`, we would write `a` in Mustache, while in EJS, we would write the form that makes more sense, as...
View ArticleRe : example of using zepto.js with steal.js
Hey Curtis Great I got the AMD version of CanJS and Zepto v1.0-1.The steal-version is what you see in GitHub Which branch of Steal do I need. The master branch or the amd branch? The amd branch seems a...
View ArticleRe : Is there a way to write {{a()}} or {{foo.attr("bar")}} in Mustache or...
EJS and mustache are not simply swapping <%= for {{. They have different principles. You shouldn't/wouldn't want to write {{a()}} or {{foo.bar}} in mustache. It takes care of this for you ......
View ArticleRe : example of using zepto.js with steal.js
Use the master branch. The AMD branch is where we worked to make Steal more like an AMD loader, but that was merged into master long ago.There was a bunch of work done to steal during JSConf this past...
View ArticleRe : Are two way bindings happening?
The example you reference has the same syntax as your "simpler" solution, so I'm not sure what you mean.I'm not sure this will ever be baked into the Core of CanJS, but it would be a good plugin. It...
View ArticleRe : I thought change to an input text box in view can reflect back to the...
You rarely want two-way binding, so it is not something that is in the core of CanJS. We'd rather have the one-way binding that you always want and allow you an easy way to enable two-way binding....
View ArticleRe : Are two way bindings happening?
HiWhat I meant as 'simpler' is that it should all be baked in.IMO two way bindings is an essential feature these days, it shouldn’t require you to write any code to handle it. Even if you don't think...
View ArticleRe : Are two way bindings happening?
2-way binding is useful in certain form-based scenarios. It's not hard to do something like:"change": function(el){ this.options.model.attr( el.formParams() )}w/ jQuery++2-way live binding will...
View ArticlePublish–subscribe pattern
I would love to have Publish-Subscribe pattern implemented and featured in this great framework. Do you guys have any plans implementing this great pattern to this great voluminous framework?
View ArticleRe : Publish–subscribe pattern
We've removed pub-sub in favor over the much superior observable pattern. I bet a search through these forums will explain why.
View ArticleRe : example of using zepto.js with steal.js
Hey CurtisI'm using the master branch of StealJS. But, if I try to steal any of the can scripts I get a Reference Error. Is there a can utility script I need to steal first? In order to make this work...
View ArticleRe : example of using zepto.js with steal.js
If you want to use Steal, you won't be able to use the AMD files from the download. Those are specifically for loaders that use the require/define syntax, whereas steal uses steal and that's it.So use...
View ArticleRe : example of using zepto.js with steal.js
Curtis thank you for your time. I was not able to get StealJS + Zepto + CanJS working correctly. But it just took a few mins to get RequireJS + Zepto + CanJS up and working. I've decided to go with...
View ArticleRe : SEO and JavaScriptMVC
Hi,I started to learn canJs. In practice i have a doubt i.e, in canjs we use date.js library file but at 12pm it returns null value remaining its returns value how to overcome that problem. i want to...
View ArticleIssue in date.js
using date.js we get the date using Date.parse(). but at 12pm it returns null value. and at 12am it returns 12. how to get the value of 12pm. formate is var eventstarttime =...
View ArticleRe : Controller Communication ways.
Hello Curtis,Thanks for this helpful response, The observe pattern is awesome, I saw the above linked video, It is really helpful. I tried to have a look of javascriptmvc docs which also explains about...
View ArticlerhinoServer has a hardcoded port of "5555"
Currently in rhinoServer.js it has a hardcoded port of "5555". What would it take to make this port dynamic? The problem is that we are using Maven 3 parallel builds to compile our projects and since...
View ArticleCanjs Browser Support?
Hey All,In what browsers is Canjs supported/tested to work?- Desktop: IE, FF, Chrome, Safari, and Opera?- Mobile: Safari, Android, Chrome, Dolphin, FF, Opera (did I miss any big ones?)tyvmKeith :^)
View Article