ajax call to database example
Can you give me an example of where an ajax call to a database would plug in to your object model?I've looked through the sample projects but haven't seen anything like that.thanks,mike wheaton
View ArticleRe : ajax call to database example
Any interaction with a database would be abstracted through a REST API (or something similar).Models work by default with a REST API, so if you want to retrieve a bunch of records from the database,...
View ArticleHow to update controller options and re-render element?
JavascriptMVC 3.2.4 here guys and gals =)I'm writing a component which is instantiated on an element inside a "wrapper" controller.e.g.this.element.find('table').components_table({ headers:...
View ArticleRe : How to update controller options and re-render element?
There is an update method of a Control that you can use for this.Since rows is a Model.List, you could bind to changes in that and re-render without using the update function.
View ArticleRe : example of using zepto.js with steal.js
Thanks Curtis Your example worked fantastic. Do you recommend that I use the can.zepto.js version of zepto? Then steal any other additional plugins or script dependencies.patrick
View ArticleRe : How to update controller options and re-render element?
Thanks Curtis.Yes the update method seems to work for me. I did wonder if I could bind to the Model.List but I thought you could only bind to add, update, destroy which were all based off changes on...
View ArticleMustache - Passing Partials in Options not working
HiI am not able to pass partials in options to a mustache template. According to the docs (see under heading "Passing Partials in Options") it should possible.See my fiddle which demonstrate this.Regards
View ArticleSteal build encodes non-ansi character with wrong unicode.
I have non-ansi characters inside js code that is encoded while steal build.But one of the characters (that should \u0418) is encoded as \ufffd.Any idea how to fix it?
View ArticleRe : example of using zepto.js with steal.js
Personally, I always use the Steal or Require.js (AMD) version of CanJS, but there's no reason you can't use can.zepto.js as long as you have the shim configuration.The steal-version is what you see in...
View ArticleController Communication ways.
Hi Friends,Please help me out by answering the following problem, That would be very helpful for me.Currently I am working on a big project, there are lots of controllers, and they are nicely connected...
View ArticleRe : Should I structure my whole html using template ?
Thanks Curtis,Now, I got the clear concept of template uses. thanks a lot.
View ArticleRe : production.js won't load. Debugging?
No one? Maybe there's an option I can set so steal tells me what it's loading? Right now I have no idea why the loading process stops. And running in development isn't really an option given the fact...
View ArticleRe : ajax call to database example
So, for the cookbook example... would I modify the /cookbook/models/recipe.js to look like this? And then somehow plugin the ajax call?...$.Model('Cookbook.Models.Recipe',/* @Static */{ findAll :...
View ArticleRe : ajax call to database example
The static methods findAll, findOne, create, update and destroy return a Deferred. If you look at their corresponding documentation, you'll see how to implement your own using a function.The simplest...
View ArticleRe : production.js won't load. Debugging?
I've succeeded in creating an uncompressed production.js. Now I can see that all steals are executed, but the main init() is never called.Does anyone know why...
View ArticleRe : Controller Communication ways.
There are two good ways to allow Controls to communicate with one another.EventsControllers can emit events that other Controllers respond to and handle. This approach is nice because the Controller...
View ArticleRe : SEO and JavaScriptMVC
Hi, I am investigating this very same subject and came upon this.http://www.yearofmoo.com/2012/11/angularjs-and-seo.htmlHas some interesting info. Please post here if you have made any further progress.
View ArticleRe : After a fragment is added to the DOM, why updating an observable updates...
the site http://blog.ralphholzmann.com/presentations/2012/jsconf/#1 is down now... is there another place it can be viewed?
View ArticleI thought change to an input text box in view can reflect back to the...
I thought I saw in http://www.infoq.com/presentations/CanJS that we can bind "both way" from an input text box in a view, to and from a can.Observe ?But somehow the following won't...
View Article