Re : EJS and @@!!@@
Gah! Such a rookie mistake. Thank you guys so much!As a side note: I created this fiddle as well, which is stripped down:http://jsfiddle.net/qYdwR/826/It has the same problem, but I notice that...
View ArticleRe : I can't get my view to work, it doesn't do anything at all.
I haven't dug into your code to know for sure -- and we use canjs instead of jQueryMX, so there might be differences there -- but here are a few things I notice which might be causing problems in your...
View ArticleRe : EJS and @@!!@@
Not entirely. The Fiddle includes the view modifier plugin which overrides the jQuery modifiers like .html, .append etc so you could do this:this.element.html('filterView', {});On the other...
View ArticleRe : How to remove controllers without deleting the parent Element?
With nested controls I usually do something like this:can.Control({ init: function(el, options){ this.section = new SectionControl(this.element.find('.section'), {}); }, 'blog...
View ArticleRe : How to remove controllers without deleting the parent Element?
@polaritydnb, I have often found myself using the technique you mentioned above by adding a DOM element to the parent DOM and instantiating my can.Control on that new element.Then, like you said, you...
View ArticleRe : If observable = new can.Observe(foo); then Chrome shows that observable...
Hey guys. Do you think you can rewrite the entire CanJS framework and make it a bit easier to understand.And can you get that done by tomorrow.Hahahahaha! Sorry, couldn't resist.Keep up the great work!
View ArticleBasic Best Practices with CanJS
I've been trying to wrap my head around using CanJS for building a complex, "real" app/product at my company. I have a few basic "best practices" questions. Hopefully these aren't out of place.Assuming...
View ArticleCall controller after page loaded
Hi all,i have to do a little example with JMVC.I try to do a really simple contact site, but I'm not able to initialize my controller.I get following message TypeError: contacts is not a...
View ArticleRe : Call controller after page loaded
Specifying pluginName let's you use your Controller as you would a jQuery plugin like this:$('#content').contacts()If you want to use the new keyword, you have to do so on the name of the Control which...
View ArticleRe : If observable = new can.Observe(foo); then Chrome shows that observable...
I asked for a better name for the constructor function.You can multiply it 1000 times by saying "Yeah, I want it to be rewritten entirely"You can multiply it 1000 times again by saying "Yeah I want it...
View ArticleRe : If observable = new can.Observe(foo); then Chrome shows that observable...
I'm not exactly sure how to respond your response, but here goes it.I really wasn't trying to offend you, and I hope I did not. I am sure the Bitovi folks appreciate any and all feedback they get on...
View ArticleRe : View/Controller Combo Loopback Problem
I put a short form of this issue to GitHub.
View ArticleRe : [Soluted] Call controller after page loaded
Tanks a lot. Was too late last night. :D
View ArticleRe : Basic Best Practices with CanJS
This is very similar to how we do things -- one 'top level' controller that's globally-accessible, and using "var self = this" to push data back into a controller when we're deep in callbacks. I'm not...
View ArticleRe : Basic Best Practices with CanJS
Awesome. Thanks, spautz! That is pretty much the conclusion I was headed towards. I watched Justin's Srchr YouTube videos yesterday and plan to look at the Observer pattern moving forward. I hadn't...
View ArticleTemplated Event Binding on Models Without Live Binding
If I fetch a list of models in the init() of a can.Control and want to listen to changes in any of the models. How do I do this if none of the models have live binding setup? The problem occurs when I...
View ArticleJust basics
Hi, I'm new to this JMVC 3.2. I having multiple html pages and multiple scaffold models in my app, each showing different content. I want know how to navigate between html pages and also the I...
View ArticleRe : I can't get my view to work, it doesn't do anything at all.
Thank you very much for your tips. I used your script and edited it a bit and now it works. Though I still don't understand why they use loops in the Todo-tutorial if it is not a bad practice. And I...
View ArticleRe : Just basics
Have you gone through the getting started stuff?http://canjs.com/#learnThere are also some helpful tutorials here:http://net.tutsplus.com/tag/canjs/
View Articleupdate.attr / live-binding in EJS - have they ever worked?
I'm wanting views to re-render themselves automatically whenever a model attr changes. To the best of my knowledge this can be achieved by using:<%== this.attr('foo') %>However when I changed...
View Article