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

Re : Document generate issue

Thanks for the reply. We are developing using windows 8. Please let us know alternative approach to adress this.

View Article


Re : multi application packaging

Thanks for validating our approach.

View Article


Re : Is it a good practise to have one base model and call different finaAll...

So my model.js would contain only one base model:   BaseModel = can.Model.extend({  findAll : function(params){    return $.ajax({      url: params.url ,      dataType: 'json'})  }},{})Here I am taking...

View Article

Re : Is it a good practise to have one base model and call different finaAll...

I think your terminology is  incorrect.  For example, it is impossible  to "inherit" from instances.No where are you "dynamically" creating instances for the model.  I'm not sure what "dynamically"...

View Article

Re : Is it a good practise to have one base model and call different finaAll...

So if you see here :Feat =can.Control.extend({ var that = this;        can.view('images/js/mn/temps/header.ejs', Basemodel.findAll({with overriding parameters}).then(function(d) {         return {...

View Article


Re : How do you manage nested can.Maps/can.Models

check out this page  in API dochttp://canjs.com/docs/can.Model.makeFindOne.html

View Article

Image may be NSFW.
Clik here to view.

Re : How do you use model.save on only a subset of field?

I think its the job of your server to do the validation of input data and pick those data they believe useful.

View Article

Re : how do i pass the url as object?

when you find your solution is messier than your problem, its very likely you find the wrong solution. 

View Article


Re : can.Compute is called too many times

It's working fine.No bugs. The compute can watch its source and automatically update itself. Do not reinvent compute and over complicated yourself in your code.For simple tasks just embed the logic in...

View Article


Re : can.Compute is called too many times

@MaxismeWhat is working fine? There is a bug. I don't really know what your example is doing, what I see here is that when one attribute value changes compute function is called two times with the same...

View Article

Re : How do you use model.save on only a subset of field?

Yes, but some times it is unreasonable to send huge serialized data, that will be ignored by server.

View Article

Re : How do you manage nested can.Maps/can.Models

You can use attributes plugin to convert automatically your array to List of needed type.http://donejs.com/docs.html#!can.Observe.static.convert

View Article

Re : can.Compute is called too many times

I remove the plain template version and move compute into the component and do not see that is called twice.every change only leaves one log in console.http://jsfiddle.net/maxisme/38M9j/17/

View Article


Re : can.Compute is called too many times

Well there you go: two calls :)http://jsfiddle.net/maxisme/38M9j/17/I removed other bindings than '{scope} comp' - there is definitely some bug, I didn't send a test yet.

View Article

Re : How do you manage nested can.Maps/can.Models

Awesome, attributes were exactly what I was looking for! I was stuck down the wrong line of thought...

View Article


Basic routing with can.Control

I am new on canjs and i would like use this tuto http://bitovi.com/blog/2012/05/hashchange-routing-can-route-1.html, but doesn't work for me     $(function() {        Router = can.Control({...

View Article

Re : Basic routing with can.Control

Call can.route.ready()

View Article


Re : Basic routing with can.Control

Thank for helpi added can.route.ready(), but no change my html code and js codesimple_routing.html<html><head><script src="jquery-1.9.1.js"></script><script...

View Article

Re : how do i pass the url as object?

can anyone tell me what is the problem by accessing the url using model in this way  data: $('.mn_dotw').data('url')??I can override the parameters using the can.Fixture or findall right ??please refer...

View Article

Re : Basic routing with can.Control

In console, i make this simple test> location.hash""> can.route.attr()Object {}> location.hash = "#!test=1""#!id=1"> can.route.attr()Object {}Normally  can.route.attr()   -> Object {id =...

View Article
Browsing all 3491 articles
Browse latest View live