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

Re : can.stache in IE 11

Standalone. I'm loading can.jquery.js, can.map.delegate.js, and can.stache.js Given 'templates/index.stache' is <div id="user-info">     <div class="content">         <div...

View Article


Re : can.stache in IE 11

Tried removing the mustache tags from the index.stache file and still get the error...

View Article


Re : can.stache in IE 11

Also tried with can 2.1.0 and got the same results...

View Article

Re : can.stache in IE 11

Made a simplified example that fails in IE 11 => Example of Failing Code

View Article

Re : Steal + Can.js (minor branch) ReferenceError: window is not defined

I thought I had fixed all of these.  Fixing them now.

View Article


Re : Steal + Can.js (minor branch) ReferenceError: window is not defined

fixing them here: https://github.com/bitovi/canjs/tree/removing-window

View Article

Re : Steal + Can.js (minor branch) ReferenceError: window is not defined

The link is broken

View Article

Using can routes

Hi All I want to learn how to use the can router better and how are other solving the following. I have an app that have routes like: /#users // Show list of users /#users/1 // show user 1...

View Article


Rendering Map and Model using mustache #each helper

Hello everyone, I tried to render a can.Model.extend using {{#each myModel}} helper with {{@key}} and {{.}} to display my model. It displays perfectly when I try to add or remove an attribute to my...

View Article


Re : Using can routes

I think you could implement something like this using view.attr ( http://canjs.com/docs/can.view.attr.html ), you could bring it to the table as separate can.js plugin.

View Article

Re : Steal + Can.js (minor branch) ReferenceError: window is not defined

It's been merged into minor.  Sent from my iPhone On Aug 28, 2014, at 12:59 AM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:

View Article

Re : Steal + Can.js (minor branch) ReferenceError: window is not defined

Ok build is working now with minor. But without this PR https://github.com/bitovi/canjs/pull/1210 can-events do not work.

View Article

can.view as AMD returns can, why not can.view?

??? return can; });

View Article


can.List / Map in AJAX call?

JSFiddle worth of thousand words :) http://jsfiddle.net/hd520x0q/1/ Why when I try to pass can.List or can.Map as data param to can.ajax it gives Uncaught TypeError: Cannot read property 'batchNum' of...

View Article

newbie - youtube video from St Louis meetup

I'm new to CanJS. Trying to learn as much as I can. I found this Youtube video: https://www.youtube.com/watch?v=h-wHDSLOwis Is there another video of this presentation without all of the interruptions...

View Article


parseModel automatically returns an observable? I just want the raw response...

With can.Model.model if I returned the raw value passed from a findOne for instance I'd get my raw JSON response.  Now with parseModel I get a can observe even though I don't need that here.  Can I not...

View Article

Re : can.List / Map in AJAX call?

You should serialize can.Maps by calling .serialize() method prior to passing them to .ajax call -__-"

View Article


Re : can.view as AMD returns can, why not can.view?

I think it was because of view precompilation in the old Steal. Not sure if this is still relevant. The problem is that changing this would be a breaking API change so it can't be fixed till version 3.

View Article

Error when generating model with JMVC 3.3

Hi, Getting the following Error if I try to generate a Model: command: ./js jmvc/generate/model app/models/test Error: ! Error: folder app/models/test/test.js does not exist! Can i create a Model only...

View Article

canjs + mustache + recursive template rendering

hi all,i tried to render mustache templates recursively like done in the testcase. my code looks like this: javascript: // controller that will care about events var StructureController =...

View Article
Browsing all 3491 articles
Browse latest View live