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

Re : update.attr / live-binding in EJS - have they ever worked?

Seems like you are using JavaScriptMVC 3.2.  Only CanJS and the upcoming 3.3 release have live binding.

View Article



Re : update.attr / live-binding in EJS - have they ever worked?

Aww shucks! OK thanks for your reply Justin.So I need to manually bind in the controller?Is it possible to listen for attr changes on a list? The documentation would suggest it is not possible but that...

View Article

Re : update.attr / live-binding in EJS - have they ever worked?

I'm not sure. It's been a while since I've used 3.2. You might pull down JMVC 3.3's latest so you can use CanJS which I'm positive does this.

View Article

Can UI docs site

Looked at http://ui.canjs.us, most of examples seem not to work.Is actualized version somewhere else?

View Article

Re : Chaining render() after init()

jQuery almost always returns itself on a setter (for chaining).You can create a render plugin that calls render on each controller:$.fn.render = function(){  $.each(this.data('controllers'),...

View Article


Is it necessary to use 'options' when referencing class static properties?

My understanding of class statics is that they are referenced with 'this.foo'. Correct me if I'm wrong! But I've also noticed that when passing options to a newly instantiated object I reference them...

View Article

Re : Is it necessary to use 'options' when referencing class static properties?

can's class statics can be referenced from instance as instance.constructor.foo, instance.options is an object that contains can.Control instance options.

View Article

Re : Is there a plan to support MVVM style live two way live binding. Also...

I have a very basic idea implemented of what I was thinking about data linking in MVVM style http://jsfiddle.net/samarjit/3bR83.It's a two way live binding without templates. Any changes to the model...

View Article


Re : Is there a plan to support MVVM style live two way live binding. Also...

You can do similar stuff already as described here:http://bitovi.com/blog/2013/01/weekly-widget-two-way-mustache-helpers.htmlI'm not a big fan of the extended attributes.  I think something like...

View Article


Re : Is there a plan to support MVVM style live two way live binding. Also...

Seems like I already showed you that link.

View Article

Re : Is there a plan to support MVVM style live two way live binding. Also...

Yeah, I have no plans to create a templating language like that.  But, when this lands:https://github.com/bitovi/canjs/blob/incremental-live-lists/view/live.jsIt will be fairly easy to create your own...

View Article

validatePresenceOf no such method on Model?

I'm using JMVC 3.2.I'm trying my hand at Model validation and am having difficulty using validatePresenceOf.(Inside a Model)this.validatePresenceOf(['name', 'age']);I get a console error:Object...

View Article

Re : validatePresenceOf no such method on Model?

Managed to solve this by going over the "Birthday" validation source. The validation is called when setting attrs!

View Article


mustache __!!__ problem in IE8

HiI have a problem with my mustache template in IE8 the template is like this:<div class="roles_list"><select class="span10">{{#roles}} <option value="{{id}}"> {{titre}}...

View Article

Re : can.Observe.List() not working with mustache template

Still not solved and I have another problem in IE8 with mustache template dosent display items in select box: <div class="roles_list"><select class="span10">{{#roles}} <option...

View Article


Re : mustache __!!__ problem in IE8

It's solved I figure out that my co-worker still use can.jquery-1.1.3 so the latest version 1.1.5 solved the problemMohamed Cherif BOUCHELAGHEM

View Article

I wonder what exactly is can.compute?

Is the design pattern a chain of observers?It seems like if no one is observing it, then it acts just like a plain function?http://jsfiddle.net/ThU8v/1/vshttp://jsfiddle.net/ThU8v/2/Comparing the two...

View Article


Re : Just basics

Hi,     Thanks for your valuable reply. I'm using JMVC version 3.2  not can.js.Pls provide samples releated to javascriptMVC 3.2 only.If some one have good samples just spread the it so that this...

View Article

_destroyed flag

Hi,We updated to the latest javascriptmvc about a month back, and just have a question regarding the _destroyed flag.In the 3.2 version, the controller used to set a flag "_destoyed" to indicate that...

View Article

Re : I wonder what exactly is can.compute?

Yes, if you are not live binding it does just act as a function. The difference is, that you can bind to changes on a can.compute and it works with Observes. Which means if you do something like:var...

View Article
Browsing all 3491 articles
Browse latest View live




Latest Images