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

Re : Compliment to parseModel to massage data before sending?

Would you consider a PR for that functionality or is this considered an edge case?Thanks, Mark

View Article



Re : Compliment to parseModel to massage data before sending?

I'd consider it.  Not sure what it would look like though.  Create an issue on canjs.  Thanks!

View Article

Re : Compliment to parseModel to massage data before sending?

Thanks Justin. Note: I see that model's makeRequest already is calling self.serialize (which is implemented in map.js). So, it seems it would be reasonable to be able to override - just a matter of...

View Article

Re : Compliment to parseModel to massage data before sending?

Got it ! http://jsfiddle.net/digger69/t1b20j2b/4/ Thanks for the help.

View Article

Binding problem using data-picker, color-picker, time-picker, etc.

I’m just starting to work with CanJs (2.1.4) with the JQuery(1.11.2) version. And found a problem when I’m using control-pickers like inputs with the can-value attribute. When the value of the picker...

View Article


Bug in Can.Model when defining id field

I found a gap with the can.Model when a different id field is provided. The destroy action is working correctly but not the update one: (CanJS 2.1.4 for Jquery)    var CollectionType =...

View Article

Cannot build my app, production.js is empty

Firstly, I already read through the post with this exact same issue, they resolved it by upgrading the version of java from 1.5 > 16, my path points to 1.7, s I dont think that is the issue. Im...

View Article

Re : EJS rendering bug: magic tag within attributes not getting escaped

Thanks guys! The workaround seems to have done the trick. I tweaked it slightly: I replaced "'" with /'/g so that it replaced all tick marks instead of just the first:...

View Article


can.Model.List: Should it automatically update when model created/updated

Hello Sorry if this is stupid but I see uses for model.list as: They are returned by findAll. They automatically remove "destroyed" items. They can retrieve items from the server (similar to findAll)....

View Article


Re : Binding problem using data-picker, color-picker, time-picker, etc.

I think you might need to trigger a change event for can-value to update. .datepicker({       onSelect: function( date) {...

View Article

models not been converted

Hey guys, i have the following code but i cant seem to get the response converted into appropriate model instances.... if anyone could help would be appreciated can.fixture("GET /fabz", function () {...

View Article

Data binding and existing DOM

Hi folks, I have a problem with data bindings in my project. Actually I have a lot of forms that are rendered on server side (are not generated by can.view and underlying rendering engine). I couldn't...

View Article

Re : Binding problem using data-picker, color-picker, time-picker, etc.

I will try it, thanks for the help!

View Article


Re : New StealJS

Hey dude. What's going on. A couple of questions here. What is the minimum version of CanJS that is needed to move to this new version of StealJS? Are there a set of steps one must follow in order to...

View Article

Re : New StealJS

There is a migrating guide: http://stealjs.com/docs/StealJS.migrating.html It's mostly pretty simple unless you were doing some strange things.  If you find other difficulties, please report them (or...

View Article


Where to bind .sortable() for a can.component?

Given the ToDo MVC example here http://todomvc.com/examples/canjs_require/,  where would I attach jqueryui's sortable (http://jqueryui.com/sortable/)?  I thought perhaps in the init event of todos-list...

View Article

Re : Where to bind .sortable() for a can.component?

typically plugins can be done in "inserted" like: events: {   "inserted" : function(){     this.element.sortable()   } }

View Article


Re : Where to bind .sortable() for a can.component?

@Justin, Thank you for the quick reply. That works. I'm trying to figure out where in the API docs, or examples I would find that (trying to learn to fish)http://canjs.com/docs/can.Component.html thank...

View Article

Where to bind autosize() for Todo MVC?

Similar to my question over here https://forum.javascriptmvc.com/topic/where-to-bind-sortable-for-a-can-component It is not clear to me where I would apply jquery.autosize()...

View Article

Re : Where to bind autosize() for Todo MVC?

I'd use a can.Component to represent a user-friendly textarea widget, and attach/detach your plugin in its inserted/removed event handlers. I banged out a quick example in...

View Article
Browsing all 3491 articles
Browse latest View live


Latest Images