Quantcast
Channel: JavaScriptMVC Forum
Browsing all 3491 articles
Browse latest View live

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 Article


Re : 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 Article


Re : 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 Article

Re : 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 Article

Re : 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 Article


Re : 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 Article

Basic 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 Article

Image may be NSFW.
Clik here to view.

Call 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 Article


Re : 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 Article


Re : 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 Article

Re : 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 Article

Re : View/Controller Combo Loopback Problem

I put a short form of this issue to GitHub.

View Article

Re : [Soluted] Call controller after page loaded

Tanks a lot. Was too late last night. :D

View Article


Re : 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 Article

Re : 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 Article


Templated 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 Article

Just 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 Article


Re : 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 Article

Re : 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 Article

update.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
Browsing all 3491 articles
Browse latest View live