REST and Failed Reqests
A model's CRUD actions return instances of the model (resource) you are manipulating. I believe this is the nature of REST-based requests. If you create a new instance of a model, by issuing a .save()...
View ArticleRe : Turning off live binding
Just re-read my question and what I meant to ask is it possible to get live-binding on the models inside the loop, just no live binding on the length property. Basically if a model is created or...
View ArticleRe : REST and Failed Reqests
Ok. That makes sense. I was really only wondered what we should be sending back from the server. I was thinking 500 status code, but was looking for some confirmation. As for handling the returned...
View ArticleRe : Turning off live binding
Use a regular loop to iterate over the models and then use .attr() inside of the loop to live bind the values of the models.
View ArticleRe : Destroying All Models in a Model.List
NoSent from my iPhoneOn Mar 15, 2013, at 2:44 PM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:
View ArticleRe : Turning off live binding
When you say a regular loop are you referring to can.each or a for loop?
View ArticleHelp With An Error Please
Can someone tell me what they think the following error could be related to?Uncaught TypeError: undefined is not a function render.js:227Could this be related to live binding?txt: function(escape,...
View ArticleRe : Help With An Error Please
Here's what I "think" is the root of my issues.I am using a jQuery plugin for datagrids called DataTables. The way it works is you generate the HTML for the table and then call the plugin on the table...
View ArticleRe : Help With An Error Please
you are probably changing the state of something within a call to can.view.
View ArticleRe : Help With An Error Please
After the page loads, there are no more calls to can.view If I load the page and then manually (from the console) destroy a model that is in the grid, this reproduces the issue.After the destroy, if I...
View ArticleRe : Help With An Error Please
where are you instantiating the DataTables plugin?It's likely you can't use the DataTables plugin and live-binding. If the data-tables widget modifies the structure of the page, it almost certainly...
View ArticleRe : Help With An Error Please
I am instantiating it in my init() function right after I append the EJS to the this.element using can.viewI was able to put together a jsfiddlehttp://jsfiddle.net/thecountofzero/6NybP/3/Loads fine. If...
View ArticleRe : Help With An Error Please
Is it because the table row still exists with live binding still rearing to go, but the underlying model is gone?
View ArticleRe : Help With An Error Please
You can't modify a live rendered Dom directly. So you probably can't use the data grid. Sent from my iPhoneOn Mar 15, 2013, at 11:44 PM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:
View ArticleRe : Help With An Error Please
I had a similar problem. It wasn't with data grid but with special scroller.Maybe you can try to destroy data grid when model is destroyed and re-initialize the plugin again. I know it's not a great...
View ArticleRe : Help With An Error Please
I've posted this error already https://forum.javascriptmvc.com/#Topic/32525000001090023 and made a fiddle to illustrate it. http://jsfiddle.net/qYdwR/589/but didn't get a feedback. I believe if it...
View ArticleRe : Turning off live binding
If i'm not mistaken can.each will to do live binding as well, so to avoid it use for example jquery's $.each or regular for/while statments
View ArticleRe : Help With An Error Please
I've tried the "destroy and re-initialize" method and that doesn't work either. Plus, it's messy.Justin, I think this is kind of a bug.I have no problem not being able to use live binding with the...
View ArticleRe : Turning off live binding
I wish there was a way to be able to use .attr() in an EJS and tell it not to setup live binding...
View Article