Live binding question: does it generate some javascript intermixed with the...
How is live binding implemented in EJS and Mustache? Is the JS function intermixed in the HTML code generated by the view render function?ThanksFred
View ArticleRe : Live binding to an array inside an object
Note.. I use Mootools so my code may be slightly different than what you need.Your template looks like this:<% Array.each(this.attr("pets"), function(pet, index) { %><span <%= (el) ->...
View ArticleRe : Live binding to an array inside an object
CanJS has it's own iterator, so a Dom library agnostic implementation is <% can.each(this.attr("pets"), function(pet, index) { %><span <%= (el) -> can.data(el, "pet", index)...
View ArticleRe : AppSwitcher Control
@Basem Thanks man, @countofzero baseball is nice push to master canjs, CanJS will be n°1 JS framework this year.Mohamed Cherif BOUCHELAGHEM
View ArticleRe : Live binding question: does it generate some javascript intermixed with...
The EJS or Mustache code is parsed and compiled into a JavaScript file. The generated JavaScript will return HTML.To see an example of this generated code, goto TodoMVC (CanJS). Then in your developer...
View ArticleRe : Live binding question: does it generate some javascript intermixed with...
Thanks but I must be missing something: Javascript on the server side cannot generate a file, Browsers (in general) will not allow that for security reasons. I went to the link and looked for the...
View ArticleRe : Localization
Here is what I am currently using...https://forum.javascriptmvc.com/topic/localization-library
View ArticleRe : Live binding question: does it generate some javascript intermixed with...
It is an eval'd script. It does show up in the Chrome Dev Tools. Goto "Sources", click the arrow to the left and select "views_todos_mustache.js", it will be at the very bottom of the list of files....
View ArticleRe : Live binding question: does it generate some javascript intermixed with...
OK, thanks I found it. I looks like an usual string array to be join'ed for speed reasons before being inserted in the DOM.For live binding, does this mean that the entire template is re-generated and...
View ArticleRe : "route change"-event triggered many times
Hi There,Were you able to figure out a solution to this, looks like you are the only one you faced the same issue and none of the following replies have helped. Please let me know how to prevent...
View ArticleRe : Live binding question: does it generate some javascript intermixed with...
No. It actually means the opposite. The renderer attaches live binding to only the live-bound part. So e.g. if you have something like<div class="{{attributeName}}"><span>This is some...
View Articlecan.Observe.attr() issue
Hi!This issue is illustrated in this fiddle.I'm experiencing an issue with can.Observe.attr() when passing another Observe as parameter, such as in line 11:can.Model('Entry', { findAll: 'GET...
View ArticleRe : can.Observe.attr() issue
I think I see a few things here.First, you would have to do the following:Entry.curr.attr(entries[0].attr());Here's why. You are trying to set the attributes (attr) of Entry.curr and the attr()...
View ArticleRe : stop spamming me with "New Post Notification" email!
I would greatly appreciate this being disabled as well.
View Article"Page foo not loaded in time!"... then tests run
I am starting to write tests for a very complex JMVC app. The tests run... but only after the page loading timeout totally fails.You can run the test yourself here:...
View Article.model() returns undefined
Are there any requirements (e.g. dependencies, initializations, Model-functions, etc.) to do this in the latest build://In EJS View //...<tr <% = data[i] %>> <td <%= data[i]...
View ArticleRe : .model() returns undefined
There is a space between the <% and the "=" in your code above. Hope that's just a copy&paste error.
View ArticleCanJS multi view - REST sign in example? - not just normal form POST
Does anyone have a solid CanJS multi view sign in example?Features:Checking username and password through can.Control and can.ModelMaybe checking username and password individually on 'focusout'I have...
View ArticlecanJS: load model with associations, but only save the “base” model
Here is a demo, how to load a model with associations (in a single request) in canJS. I found it in thegithub repo of canJS, here, and actually I had to rewrite it a little bit to work (it was...
View ArticlecanJS: load model with associations, but only save the “base” model
Here is a demo, how to load a model with associations (in a single request) in canJS. I found it in thegithub repo of canJS, here, and actually I had to rewrite it a little bit to work (it was...
View Article
More Pages to Explore .....