Questions tagged [knockback.js]

Knockback.js provides Knockout.js magic for Backbone.js Models and Collections.

https://github.com/kmalakoff/knockback/

23 questions
0
votes
1 answer

How do you prevent Knockback.js creating view models for null relations?

If my backbone models have relationships (for example, created by backbone-relational), those relationships might be nullable, leading the foreign key fields to sometimes be null. If I have several knockback view models, and I've specified factories…
SpoonMeiser
  • 19,918
  • 8
  • 50
  • 68
0
votes
2 answers

JQuery toggle div inside the foreach loop

I am using knockback.js.I have a list of values "projects"(value comes from the server). and the content of these values are displayed in the
.
0
votes
0 answers

ko.renderTemplate and requirejs loader

I want to use knockout's renderTemplate function in a requireJS project/module. I want to load the templates via the !text or !tmpl plugin. Currently I end up with: "Uncaught Error: Cannot find template with ID ..." A normal call would look like…
Stephan
  • 11
  • 2
0
votes
1 answer

Backbone.js Model Sync claims URL Undefined

I'm trying to make a new Backbone model (working within Knockback) and I'm currently trying to set it up with a RESTful backend server. The issue is that the URL isn't accepted when trying to use the objectives.sync(). It works normally when doing…
moberemk
  • 1,597
  • 1
  • 18
  • 39
0
votes
1 answer

Getting through to data in a Backbone collection of Backbone models via KnockbackJS

I was playing around with Knockout and Backbone these past few days and came across the KnockbackJS framework which sort of combines the binding powers of Knockout with data modeling magic of Backbone. In this simple example I have a Backbone…
sikac
  • 56
  • 1
  • 4
0
votes
1 answer

using knockback to bind 2d array changes - Uncaught Observable: key is missing

I am trying to use knockbackjs (knockoutjs + backbonejs) where the model is a 2d array )ie table, and the viewModel is binded using foreach to a table html tag, so I will get an observable table, each click on a cell will send the entire 2d array to…
Mithir
  • 2,355
  • 2
  • 25
  • 37
0
votes
1 answer

knockback - backbone model reset, knockout if render

I am using backbone for persistence and knockout for binding, i.e. I am using knockback On page load, all is well. When I click on the check box, based on the value of IsChecked, either yes or no is displayed. When I click on reset model button, the…
bvoleti
  • 2,472
  • 1
  • 18
  • 20
-1
votes
1 answer

ko Uncaught ReferenceError foreach

I know this sounds like a really simple issue, but this is driving me a little nutty. I have an observable array of objects that I would like reflected in my html. So for each object in the html I would like to show a paragraph on the page. To do…
zazvorniki
  • 3,512
  • 21
  • 74
  • 122
1
2