I am taking help of the https://github.com/thinkadoo/Projects application. I have built a similar app with the help of this one. My application is using d3 charts instead of the one this uses. My app initializes the routers as    var patientStatus =...
I am having trouble understanding how to correctly implement the can.Model service methods. I currently have this  var Foo = can.Model({ findAll: "GET /service/Editor.svc/foo", findOne: "GET /service/Editor.svc/foo/{id}", create: '...
I am trying to implement MVC using AMD in canjs. For that I am using requirejs. This is my domains.json file:  [             "1":{"uid":     "1","urls": "domain1.abc.com"}, "2":{"uid":    "2...
I am using EJS templates with CanJS and are looking for a way to debug my EJS code. Currently firebug can show me the syntax errors in EJS but in other browsers, I am not able to see anything.I need to go through my EJS file very carefully to solve t...
I am trying to to create auto suggest element manually. I am using canjs for this prupose.  Following code I have tried so far:  list.filter( function( item, index, list ) {    if(item.includes(searchText) && searchText != ''){      /...
Is there a way to add more rest bindings on model then just the four CRUD functions?  var Customer = can.Model({     findAll: 'GET /customer',         findOne: 'GET /customer/{id}',     create: 'POST /customer',     update: &#...
I am currently using jQuery, Twitter Bootstrap and CanJS for my web application. I'm trying to implement routing with CanJS. I'm using Bootstrap's tab, and when I click on a tab, it was supposed to bring #tabSearch, #tabUser or #tabPermis...
I have two routes defined in different JS-documents, although both are included into the same HTML-file. Route 1 looks like this:   Router = can.Control({    "invoices/:id route": function(data){     //load an invoice by id    }  });   And th...
I have a login component with a model that goes to the server and receives an error if the login was no correct.  Here is the idea of what I'm talking about:  var LoginModel = can.Model.extend({     create : "POST /account/login" },{});...
I am trying to sort a map which is inside a filter and return the map    var sort = this.attr('component').attr('sort');   if (sort == 'Price Descending')   {      return this.attr('%root.products').filter(function(pro...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.