Skip to main content

Questions tagged [knockout.js]

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

0 votes
1 answer
243 views

Being prompted for login credentials windows authentication asp.net mvc and knockoutjs

I am trying to access a site using windows authentication. The site is an asp.net mvc 4 application and uses knockout.js and jQuery for the client site. I am prompted for a login and if I cancel the ...
Paul Daniels's user avatar
1 vote
1 answer
129 views

Uncaught ReferenceError: mozRTCSessionDescription is not defined

I have an ASP.NET MVC app (.NET Framework 4.6.2) which has a front end on Knockout.js it also uses signalR. The app was working fine until we upgraded Firefox to version 113.0 and 113.0.1. The app ...
IntelligentCancer's user avatar
1 vote
2 answers
48 views

Adding multiple CSS Elements to a data-bind with Knockout

I need to add multiple css classes to a div using knockout. I have this div: <div data-bind="css: {'case-header': model.caseHeader1, 'case-type-1': model.caseHeader2, 'case-type-2': model....
Corey Sutton's user avatar
  • 1,069
0 votes
0 answers
34 views

Page auto reloading for no apparent reason

I am having a bug with a project that I am finding very hard to reproduce but it is a serious bug. As part of my attempt to fix it, I would like to know the answer to the following question: what ...
Rabbi Kaii's user avatar
1 vote
1 answer
30 views

Knockout.js - custom "template" binding that can be used in the same data-binding as "with"

I am heavily invested in the knockout.js ecosystem. I'm not sure why it's not more popular, but it does everything I want with minimal bloat. Now I am also an extreme syntax minimalist. I think ...
Dirk Boer's user avatar
  • 8,923
0 votes
1 answer
27 views

Knockout.js indexed based color from array

Hello and thanks in advance. I am building a custom component and I want to retrieve properties from a component array. In the component viewModel: graph.colors = ["#3366cc", "#dc3912&...
Mikhail Zoupas's user avatar
0 votes
1 answer
440 views

Show data-attributes from selected Radio-Button with knockout js

I am really new to knockoutjs and find it kind of hard to work with it. Things that were very easy for me with jQuery, don't work at all with knockout... On a Magento 2 Shop I want to display ...
schnacks's user avatar
0 votes
0 answers
83 views

Knockout Typescript bind action of dxValidator.validationRules.validationCallback for multiple values

I have 3 dxNumberBox max,min and average and a next button as : <div class="flex-row"> <div class="flex-item-left"> <div data-...
hedbisker's user avatar
  • 317
1 vote
1 answer
72 views

How to Call A Function inside a Ko.Observable Array? Knockout

I'm learning more about knockout.js. I have built a little dialogue system using it and it works! One thing I'd like to do, is have a function that can jump from the data after a button is pressed to ...
CodingSkeletons's user avatar
0 votes
2 answers
60 views

If toggle one is switched off and then toggle two is switched off by the users then toggle one should be switched on

I am quite new to knockoutjs and I am trying to create two toggles. When toggle one is switched off and then toggle two is switched off by the user, toggle one should be switched on and vice versa. ...
SofiaIG's user avatar
1 vote
3 answers
153 views

How to write Sort and Reverse function in Knockout.js?

This is my code with KnockoutJS: var viewModel = function () { var self = this; self.items = ko.observableArray([ { name: "Item 1", value: 1 }, { name: "Item 2", value:...
parisadz's user avatar
0 votes
2 answers
122 views

How to display images and text using knockout?

I'm learning more about knockout.js. I want to add images to my text data, and display the correct one based on the image link provided in the array with it's matching data. I only want one set to ...
CodingSkeletons's user avatar
1 vote
1 answer
74 views

How to read Json data using Knockout?

I want to create a Typewriter Effect using knockout, but I cannot store the data inside my table in order to create said effect. I've done some research on for a few weeks and I don't have the ...
CodingSkeletons's user avatar
1 vote
1 answer
29 views

Knockout dynamic foreach

I'm new to Knockout so forgive me. Lets say I have two variables each containing an enumerable list of strings. var oneStar= "a,b,c" var twoStar= "d,e,f" On the MVC view I have a ...
MrNick's user avatar
  • 15
0 votes
1 answer
201 views

Ajax call request are taking longer time to execute

In an MVC & knockout.js application call is being made using following function GetCalendar: function (monthYear) { var html = ''; $.ajax({ url: baseURL + 'ajax/GetCalendarHTML', ...
Learning's user avatar
  • 19.8k

15 30 50 per page