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 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 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" },{});...
In canJS I can set a model property with person.attr('name', 'John Doe');, but sometimes that property contains nested data, so I need to do the following:  var address = person.attr('address'); // Update country address.count...
I am getting a model deferred object with a structure like this:    How can I find out how many objects are present inside this object (in this case, three). If I use Object.keys(myObject).length, it includes the object observer and other data also l...
With the new CanJS update, my Models stopped working and I dont know why.  This is what my code looks like:      Module = can.Model.extend({            findAll: 'GET ' + window.rootPath+'api/module'     }, {});      FormModule = can.C...
I'm using CanJS (with StealJS) to build a quizz app, and I have quizz-question component that is rendered for each question!  I wonder how to make a transition with velocityjs each time quizz-question component is removed for answerd question and...
I am trying to fetch data from the json array using canjs in html file with ejs template engine.  But when I load the html file on browser It shows the error that "Undefined is not a function".  This is my todo.js    var Todo = can.Model({ 	f...
I have a search page and an edit page. I search for a user and then when I get the results, I'm able to edit the user. I'm using CanJS and I've defined routes for each page.   , 'search route': function (data) {     new FormUserQu...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.