Proper way to handle nested data with can.Model
I am rather new with canjs and would like to know if the following is possible with can.Model.I would like to be able to pass initial data to a view in a single request for performance reasons, but...
View ArticleRe : Controllers on parent element are getting destroyed when a child element...
The fiddle is way too complicated for the issue you want to replicate. Is the DOM structure the same in the fiddle as it is in your app and are the versions of the libraries you are using the same? The...
View ArticleRe : Controllers on parent element are getting destroyed when a child element...
I am using can.jquery-all.js 1.1.5 version.Yes, the html structure is similarLogin controller is on #body-container and this div will never be removed from the DOM.In my design each page has a...
View ArticleRe : Controllers on parent element are getting destroyed when a child element...
Also in JMVC, template was added first to the dom and then plugin method was called.But in canjs - control(helper method similar to plugin) is getting called first and then template is getting added to...
View ArticleHow can I use jQuery Mobile in jQueryMX??
Hello!!!I am new using jQueryMX and I need to use it with jQuery Mobile. Someone can help me about or know where can I find some information or examples about this. Any help will be really...
View Articlecan.view("only url") vs can.view.render("only url") - is there any difference
can.view("only url") and can.view.render("only url") both return renderer fucntion.Is there any difference between them?Is there a case where only one works and other dont.
View ArticleRe : Proper way to handle nested data with can.Model
You can use the can.observe.attributes plugin for this: when an instance for your 'outer' model is created, it can auto-convert the arrays of data into Lists of Sales and CustomerPricing...
View ArticleRe : can.view("only url") vs can.view.render("only url") - when no data...
The can.view function returns a DocumentFragment, while can.view.render returns a html string.I'm not sure if there are additional differences, but for us that's the main one: In our app we generally...
View ArticleRe : can.view("only url") vs can.view.render("only url") - when no data...
Also, in my testing (I may be wrong), but if you want to nest views then the top view call can use can.view but any nested views should use can.view.render.
View ArticleRe : Why -restCreate, -restUpdate and -restDelete are removed from canjs...
Because you can now easily do that with can.fixture.store:var todoStore = can.fixture.store(100, function(i){ return { id: i, name: "todo number "+i, description: "a description of some...
View ArticleRe : can.view("only url") vs can.view.render("only url") - when no data...
can.view.render("url with data", {}) - returns htmlcan.view.render("only url") - returns renderer fucntionscan.view("only url") - return renderer fucntions
View ArticleRe : Controllers on parent element are getting destroyed when a child element...
CurtisCan you please help me. I am still facing the same issue
View Articlecan any one help me how to use bootstrap modal with canjs ?
hi im using bootstrap modal but when the template button clicked event is not working and i wrote the click event in controller still it is not working
View ArticleRe : can any one help me how to use bootstrap modal with canjs ?
Post your code or create example on jsFiddle - that way we can help you better. Bootstrap modal dialogs work for me.
View ArticleRe : can any one help me how to use bootstrap modal with canjs ?
in html<div id="home" class="span10" ></div> <div id="windowTitle" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="windowTitleLabel"...
View ArticleRe : can any one help me how to use bootstrap modal with canjs ?
can you send an example ..
View ArticleRe : can any one help me how to use bootstrap modal with canjs ?
<button class="btn btn-primary" type="button" id="createButton">This button needs to be child of html element on which you instantiate your controller. If it isn't, you can't listen to events on it.
View ArticleRe : can any one help me how to use bootstrap modal with canjs ?
mr. pohoda: that is good to know! Thanks for that. I hadn't run into that yet, but I could see myself losing my hair over it in the near future.
View ArticleRe : can.view("only url") vs can.view.render("only url") - when no data...
This are the different possibilities:can.view.render("url with data", {}) - returns htmlcan.view.render("url with data", deferred) - returns deferredcan.view.render("only url") - returns renderer...
View ArticleRe : Steal Build Error
So is this an issue with env.js, jQuery or the colorbox plugin?The plugin works without error.
View Article