Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8653853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:38:32+00:00 2026-06-12T14:38:32+00:00

I have wanted to try to use knockout.js but have not really needed it.

  • 0

I have wanted to try to use knockout.js but have not really needed it. I however am building a new screen and wondering if it is worth trying to do in knockout.js over say jquery.

enter image description here

This is the Google calendar repeat appointment screen. Now what I am trying to do is pretty similar their maybe checkboxes, dropdownlists and radio buttons.

Each choice will affect the summary part. So if I uncheck “F” then the summary should update.

Will knockout make it easier for me to build the summary part? Or is their something else that can help me out?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:38:33+00:00Added an answer on June 12, 2026 at 2:38 pm

    This is something you could do with Knockout.js. KO isn’t supposed to necessarily be a replacement for jQuery, but a higher level layer to help with model and view bindings (i.e. VMMV). jQuery is still great for animations, and most importantly, AJAX calls. Depending on what you’re doing, KO and jQuery can get along very nicely.

    KO can be hard to get your head around, but once you do, it’s pretty awesome, and makes certain things dead simple. For example, I tackled just the section where you click on the day of the week and display it:

    http://codepen.io/CWSpear/pen/IbkvJ

    If nothing’s checked, nothing shows, but as soon as you start checking stuff, it shows what days are checked, (i.e. Weekly on Thursday).

    The JavaScript is only a couple of lines. The magic is the bindings:

    Each input has a data-bind="checked: days" attribute, which means when they are checked, they will automagically get added to the days variable in my ViewModel, which is a ko.observeableArray. That means it’s watching those checkboxes, and as soon as there is a change, it will notify anything that depends on it.

    Which, as it turns out, our summary variable, which is a ko.computable (which is a computable observable). It has an attribute: data-bind="text: summary, visible: days().length > 0". This means it is only visible if days is nonempty, and the text is defined in our javascript as “Weekly on [list of days]”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have wanted to try GAE since launch, but coming from ASP .NET and
I really wanted to try to figure out how to use a Category or
I have just compiled GCC 4.6.0, and I wanted to try the new features
I am programming in Ruby and have wanted to learn about matrices but I
So I have always wanted to do something like this, but never knew how
I have a problem with Spring and JPA. Basically I try to use JPA
I'm pretty new to java and really enjoying learning about it. I have made
I have started working on Opencl for a project. I have wanted to use
I'm changing from IceFaces to PrimeFaces (I really wanted to change to RichFaces but
On occasion, I have wanted to push a closure onto ActionScript's event stack so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.