Quantcast
Browsing all 3491 articles
Browse latest View live

Re : Stealing Can with MooTools

Any traction on this?

View Article


Undocumented packages

Hello guys,The more I use canJs the more I love it, it's awesome.Browsing the code, I found a couple packages which I'm not sure how do they work since there are no documentation about that (however...

View Article


Re : Attach model to dom in a Mustache template {{el -> CODE}}

It's also worth noting that if you use {{data 'scope'}} it'll allow you to piggy back off of el.scope(), which IMO makes things more consistent.

View Article

Re : Updating model: replacing can.List attribute

Because can.Model instances represent server resources, it makes sense to keep a single object per id, such that multiple lists interacting with that resource will interact with the same object. The...

View Article

Re : Typescript support

I think maybe Bitovi has no plans to port canjs to TypeScript, but it would be great to have the definition files available to download.Regards.Ricardo ObregónYiiFramework developer, UX consultant

View Article


Re : Best convention for re-render/update of part of section

I'll answer my own question.  Data binding ... it's awwwwesome.  Curious if this makes sense to others.  I return a model object(map) from a findOne, store that on a Control's options object and pass...

View Article

Re : Input validation

Thanks for the answers.For JustinIn principle your idea is nice, but I foresee it to become unworkable when one wantsto add more validation rules to the input field as in you last example<input...

View Article

Howto: listen for view change event?

Hello.I have a view, which is initialized via live data binding and depends on many different Map properties.I need to implement custom scroll bar for my view (specifically,...

View Article


Re : Input validation

Why would that be unworkable?Sent from my iPhoneOn Mar 17, 2014, at 6:27 AM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:

View Article


Re : Input validation

Are you talking about the thing like jQuery Form Validator formvalidator.net . and also from jKit. http://jquery-jkit.com/commands/validate.html They have done the job, why not use it?

View Article

Re : Howto: listen for view change event?

I'm not sure of a performant way of doing this.  You could listen to the inserted, removed, and attributes events on every element. But that will be slow. Sent from my iPhoneOn Mar 17, 2014, at 8:24...

View Article

Re : Howto: listen for view change event?

You're probably going to need MutationObservers for this:https://developer.mozilla.org/en-US/docs/Web/API/MutationObserverYou can set subtree to true when you init the observer, and this can then...

View Article

How to : use a controler function by another controler

Hi I have a problem with my project. I have a click event in one of my controller that call another controller to displays a content the thing that it works once and after re-clicking on the same...

View Article


Re : Howto: listen for view change event?

If you have particular html element in your view which is re-rendered with every possible change, you can update scrollbar like this:<div> <div> <div <%= function (el) {...

View Article

Re : Howto: listen for view change event?

Thanks for your responses, guys!Yes, listening for multiple change events on Map object is not an option since it could cause performance reduce.I will take a look at the Mutation Observer solution,...

View Article


Re : Howto: listen for view change event?

Thanks for the suggestion! It could work. However I'm using logic-less Mustache templates. So not sure how to implement it with Mustache. Looks like...

View Article

Re : Howto: listen for view change event?

To be clear, 2.1 supports inserted, removed, and attributes events which let you know when the DOM is changed.  These work in all browsers.However, these events do no bubble, so you will have to listen...

View Article


Re : Undocumented packages

Queue is safe to use.  Cache is deprecated.  There is a blog article: http://bitovi.com/blog/2013/03/weekly-widget-instantaneous-web-apps.htmlbut the fiddles are out of date.  I'll see if we can fix that.

View Article

Re : Howto: listen for view change event?

Written as Mustache:<div> <div> <div {{ (el) -> updateScrollbar(el); }} ></div>      </div></div>A couple of notes and caveats, though:* You see that there's no...

View Article

Re : Howto: listen for view change event?

I should clarify that the only reason that I'm recommending MutationObserver here is because it can listen to subtree modifications.

View Article
Browsing all 3491 articles
Browse latest View live