Knockout.js is an open source JavaScript library for dynamic HTML UIs using the Model-View-View Model (MVVM) pattern.

learn more… | top users | synonyms (2)

5
votes
0answers
852 views

Knockout js - beforeRemove animation while adding items to observable array

I have a problem with knockout js and displaying an observable array as a list; When adding an item while the beforeRemove animation is running, the removed element is moved to the bottom of the list ...
3
votes
0answers
61 views

How to improve SEO for single page application

We have built a search-engine for vacancies. For reasons of speed and a good user-experience, we used a the architecture of a “Single Page Application” (SPA). We know that for a SPA-architecture it ...
3
votes
0answers
237 views

knockout virtual scrolling binding

KOGrid uses virtual scrolling to render content dynamically. I'm looking for something like that but more generic so it could be used for ul lists, Bootstrap rows, whatever. I saw something called ...
3
votes
0answers
264 views

JAWS not reading <legend> within <fieldset> within dynamic framework

I'm doing accessibility work on a dynamically built quiz within a larger site (we're using Knockout bindings to populate the questions.) I'm currently working on our radio buttons questions. We ...
2
votes
0answers
54 views

Knockout “with” binding, and using array index accessor

I'm trying to use the following 'with' binding in knockout: <td data-bind="with: $data.tiers()[$parents[1].Index]"> ... </td> But I'm getting the error "Unexpected token );". If I ...
2
votes
0answers
192 views

Chutzpah Error: Object doesn't support property or method 'filter'

I'm trying to run jasmine tests on my knockout viewmodels, written in typescript via chutzpah but this doesn't seem possible due to the following error: Chutzpah Error: Object doesn't support ...
2
votes
0answers
195 views

Knockout JS href attr not binding on .NET MVC4 partial page

I am a moderate Knockout user, but this is my first time using it in an MVC4 environment. All of the usual bindings have been working properly, but I am running into an issue where my href attribute ...
2
votes
0answers
2k views

Web API: Upload files via Ajax post

I have this following snippet for uploading files via Ajax post (using Knockout js library) ko.bindingHandlers.fileUpload = { init: function (element, valueAccessor) { $(element).after('<div ...
2
votes
0answers
924 views

Routing knockout.js app with Sammy.js and history with html4 support

I just started playing around with sammy.js and first thing I want to do is to test how history changes works. And it works as expected, even better, but once I open IE10 and switched to IE9 browser ...
2
votes
0answers
299 views

Knockout-Sortable horizontal list pushes items vertically when dragging items

I am creating an application with knockout.js, using knockout-sortable for drag-and-drop sortable lists. There is a vertical list, and inside each of those items is a horizontal list. The vertical ...
1
vote
0answers
17 views

knockout template binding cause call-stack overflow

Here is popup html to which viewmodel is binds when some event happens. <script id="popover_content_wrapper" type="text/html"> <div class="annotation-content" data-bind="template : { ...
1
vote
0answers
30 views

Broad Design Implementation: PHP, MySQL, Knockout

Spent the last few weeks learning MySQL and PHP. Then I learned some basic knockout.js and I'm rewriting a lot of things.' Just wanted to check before I go further if this is the most efficient way ...
1
vote
0answers
49 views

Knockout MVC Partial View Model

I have an issue with my partial view. The partial view uses the Foo model, and when being called from /Foo/Index, which uses the same model, the text area works fine. SomeString gets updated with the ...
1
vote
0answers
50 views

Aligning element's inside table while using knockout js foreach binding

I have a table that is created using knockout's foreach bindings. I am trying to get the 2nd td's ul li item to align with the first td's ul li item and iterate this for every item. A problem I'm ...
1
vote
0answers
42 views

Unable to deselect option with Chosen and Knockout Binding

When trying to deselect the currently selected item in chosen through a knockout binding it seems to get reset back to what it was before the reset: Here's the example: http://jsfiddle.net/WPpH2/7 ...

15 30 50 per page