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

Re : Model save parameters

Well, I'm not entirely sure are the details of what you're doing, so for the sake of argument, I'm going to walk you through this using a different example. Let's say, you have an invoice schema, that...

View Article


Re : Canjs LiveBinding with EJS

I don't follow JavascriptMVC, so I couldn't give you an answer there, but as far as canjs goes, mustache is receiving a LOT of love in comparison to EJS. There is just a lot of functionality in EJS...

View Article


Re : Canjs LiveBinding with EJS

Yes, EJS is no longer being actively developed.  We will continue supporting it at least in 3.0.  It's possible in 4.0 we could drop support, but we have no plans on doing so.The reason is that...

View Article

Re : Model save parameters

@thomas ok thanks for the answer =) have never dove deep into REST principles before. I wanted to leaverage can.Model build in capabilities (findAll, update, destoroy URIs that are converted to...

View Article

full pager for paginate example

yesterday I asked a question in the IRC channel and I quite after a while, the question was how to make full pager for the pagination example, Justin asked for more explaination so I tried to make an...

View Article


can.view Method

Hi In the can.view method i must specify the complete path to the view or is there an autodetection mechanism like in javascriptmvc?Thanks Christoph

View Article

Image may be NSFW.
Clik here to view.

Re: Data-Driven Javascript Controls -- What about checking checkboxes?

This is somewhat related to (and inspired by) Bitovi's recent blog post, Data-Driven JavaScript Controls.In that post, the example deals with using an observable property (a List's length) to show/hide...

View Article

Cascaded dropdowns/models

Hey guys,I'm a PHP and JS developer, however I'm new to canJS, and I've found it very exciting.However, I'm expriencing some challenges with my last development. I'm pretty sure that the solution must...

View Article


Re : Cascaded dropdowns/models

Doing some research by myself, I found the answer for question 2:A simple way to achieve that is:myList.replace(myModel.findAll());Hope it help for some of you.Ricardo ObregónYiiFramework developer, UX...

View Article


Re : Canjs LiveBinding with EJS

Thanks for the infos. I tried to change to mustache.js:self.element.html(can.view('myview', { data: this.myData }));html: <input type="text" id="inputName" name="name" placeholder="Name" {{value...

View Article

How to get the element from a controller click event ?

Hi, I am working on a click event in a Controller, the thing is I'd like to get the full class name on the element I have clicked on.'[class*="sNext"] click' : function() {       get the full class...

View Article

Re : How to get the element from a controller click event ?

The first parameter to your callback is the element that triggered the event. There is a second parameter which is the event object.

View Article

Re : Rails 4 + JavascriptMVC

works perfectly. thanks!

View Article


Re : Re: Data-Driven Javascript Controls -- What about checking checkboxes?

Hey @spautz I think you made a reasonable choice, but personally I think it's always best that a control has it's own ViewModel even if it only contains the model passed in. That frees you to add...

View Article

Re : can.view Method

complete path of the view

View Article


Re : Cascaded dropdowns/models

Hey @robregonm, findAll() returns a deferred so what you are doing there isn't going to work as expected. There is a nice trick I think you might like. If you initiate a model list with {} it will go...

View Article

Re : Cascaded dropdowns/models

Thanks Matt for your answer.That trick is nice, and works perfectly, however, since I'm creating dependent dropdowns/models, it would be nice if there was a way to delay the load of a "List" until some...

View Article


Getters and setters with can.Map

Hello, I'm a novice JS developer and CanJS caught my attention because it does offer some of the important goodies larger frameworks like Ember or Angular offer, but without the framework part. And the...

View Article

Re : Getters and setters with can.Map

Getters and Setters aren't enough. To make this happen you also need to know when a property is added or removed from the map, and getters/setters are only for existing properties. In ES6 (the next...

View Article

Re : Cascaded dropdowns/models

If you have dependent lists, that's a great reason to use can.compute. Using a compute in your dependent list you can respond to the changes in the parent dropdown. For example, let's say your parent...

View Article
Browsing all 3491 articles
Browse latest View live