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

Re : CanJS CRUD example with a RESTful API backend - think-a-doo.net

Just couple of thoughts on things that you might not know about:1) It seems that you didn't use EJS at all.2) Code like:'.new click': function(){  this.newWine();},can be replaced with: '.new click':...

View Article


Re : CanJS CRUD example with a RESTful API backend - think-a-doo.net

Hey Alex.Thanks for your feedback. Thats exactly the peer review I am hoping to get.It's all in GitHub - would you please help make it better?Or make some suggestions and I will try my best to improve...

View Article


Re : Best way to bind a templated event to object created by Control

Thank you guys I appreciate the feedback.Alex - I agree that it is better practice to limit the scope of controls to nested elements if possible. In my case I am building a widget to add progressive...

View Article

route.js: setState called before it is defined

The jQuery onReady event handler gets invoked before setState is defined in IE7:$(function() { $.route.ready();});triggering this code:ready: function(val) { if( val === false ) { onready = false; }...

View Article

Re : CanJS CRUD example with a RESTful API backend - think-a-doo.net

Why there's no routing?Mohamed Cherif BOUCHELAGHEM

View Article


Re : CanJS CRUD example with a RESTful API backend - think-a-doo.net

Couple bigger picture things:1) Split up the app into multiple files/controlsThe tutorial kept everything in one file because it's easier to teach that way in a tutorial format. In a real world app,...

View Article

Re : CanJS CRUD example with a RESTful API backend - think-a-doo.net

@curtis WOW - thank you so much for http://net.tutsplus.com/tutorials/javascript-ajax/diving-into-canjs/Your 3 tutorials really helped me! It was the only novice introduction I could find that had all...

View Article

Live binding on mustache template does not seem to be working with nested...

I have a simple example in which a nested property fails to live bind and propagate the change to the template. I change an attribute of an array index inside an object and nothing changes on the view....

View Article


Re : can.js EJS and helpers

Sorry to bump a 6 mo thread but can someone elaborate on the new plugin()/"Element Callbacks" functionality?  I use this all the time in jmvc and absolutely love it.  Suppose I want to instantiate...

View Article


Re : CanJS CRUD example with a RESTful API backend - think-a-doo.net

I added the "mobi" version http://think-a-doo.net/mobi/

View Article

Re : can.js EJS and helpers

Suppose the plugin is jQuery UI tabs widgetThe example here: <div <%= (el) -> el.plugin() %>></div> ====> <div <%= (el) -> el.tabs() %>></div> is it...

View Article

steal buildjs produces error with ejs templates

My App works fine in development mode but I get an error when I build the production file.Here is my simple test code:steal( 'can/control/control.js', 'can/view/view.js', 'can/view/ejs/ejs.js',...

View Article

Re : can.js EJS and helpers

The only change in CanJS is that instead of doing this:<p <%= plugin('controlA', {...}) %>></p>You do this:<p <%= (el) -> new controlA(el, {...}) %>></p>What...

View Article


Re : Live binding on mustache template does not seem to be working with...

I'm looking into a fix for this, but in the meantime this should work:cObj.todos.attr('1', 'Line #2 Changed'); 

View Article

How do you associate a model instance from list with an element in an ejs...

Tried list() and some old methods from JMVC..  In a can.Control instance, templated event listener:'li click': function(el, ev) { trying to get el.model() here... }No model() function.Tried using...

View Article


Re : How do you associate a model instance from list with an element in an...

Closest I've come is:<%= (el) -> el.data( 'project', project ) %>

View Article

Re : [1.1.1] Resetting a form changes input values to "__!!__"

I am getting the same on a "text area" in a form using 1.1.3 and jQuery 1.7.2 and 1.8.3It only happens once - when the app loads.GET /__!!__I see when I refresh the site...

View Article


CanJS can.Control parent child interaction, accessing an element's controller...

I have a parent can.Control instance named FooList bound to <div class="list">.  In that parent element's ejs template, I have this:<div class="child" <%= (el) -> new FooDetail(el, {})...

View Article

Re : How do you associate a model instance from list with an element in an...

I dont know if I really understand your problem but here is a jsfiddle link http://jsfiddle.net/cherif_b/LqRzg/1/Mohamed Cherif BOUCHELAGHEM

View Article

Re : CanJS can.Control parent child interaction, accessing an element's...

Do you use can or JMVC?I have never had the chance to try JMVC but with CanJS is easy read the docs and the APIIs better to use routes to change the state of your app too so when the element is clicked...

View Article
Browsing all 3491 articles
Browse latest View live