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

  • Home
  • SEARCH
  • 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 8451333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:12:40+00:00 2026-06-10T11:12:40+00:00

In our application we use jquery for all the client side scripting.The scripts at

  • 0

In our application we use jquery for all the client side scripting.The scripts at first started out as trivial dom manipulation but over the time it has grown in volume and is much more difficult to maintain we thought it might be.It feels very cluttered to the point that any change in the script breaks some functionality.So we are planning to use knockout.js to clean the mess that we have build.My question is how much of structural changes will have to be made in order to accommodate knockout.js?Will we have to rewrite everything?I know it is tough to answer the question without looking at the code but I am asking for general opinions.What would you do if you found your self in this situation?

EDIT:

Some details about the code structure:

We are using Asp.net MVC framework

About 30% of the client side code deals in making ajax requests to the server and based on the response it makes changes to the Ui

We have a lot of code that shows and hides Ui elements based on the user actions.Most of it is repetitive,we are to blame ourselves for this one.

This is about it we are not doing any calculations or something that requires a lot of logic just manipulating the ui either by a server response or by users action.

  • 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-10T11:12:41+00:00Added an answer on June 10, 2026 at 11:12 am

    I have worked on a ASP.NET MVC3 project and like you, I started using jQuery for some simple DOM manipulation, but as time went by I ended up with a lot of client side logic to manage using jQuery – so I started switching to knockoutJS.

    Before I started migrating I went through all of the great turoials at http://learn.knockoutjs.com/ – just to get familiar with the terminology ( viewmodels, bindings, custom bindings, observables, utility functions, etc. ) and some of the different bindings that you can make.

    I then started creating my viewmodel the way that suited my application the best – that part in particular depends very much on what type of application you are making. In my case, I used a lot of ko.observable()‘s and ko.observableArray()‘s in order to easy update the client when different conditions got satisfied. As the viewmodel started come along I started updating my views with the appropriate bindings ( foreach, with, text, css, attr, enable, etc. ) – in that way I was able to see some progress all the time.

    So to sum up – start learn how to use it – then start defining your viewmodel and figure out which states you need to represent client side. Then start (re)-implementing your view – replace some of your “old” jQuery code “one-by-one” and start saving some lines and get a more dry view implementation 😉

    And by btw – StackOverflow and http://knockoutjs.com/documentation/introduction.html is going to be your friend – if you’re in doubt of anything it’s almost always in the documentation – and if it is very specific ( or hard to find ), I found that it was pretty straight forward to find related questions already asked at StackOverflow.

    — Update:

    Like you I also have a series of AJAX requests – bot I also use SignalR for some async real-time messaging to the client – and I definitely found the observables very very useful for this purpose – so if I should recommend specific parts of knockoutJS that you should pay very much attention to and start getting familiar with, that would be the observables, observable arrays and computed observables.

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

Sidebar

Related Questions

We are in the process of migrating our ASP.NET application to use Jquery instead
Our application used to make use of a common base form that all forms
Sometimes in order to make our application more responsive and fast, we use client
The web client of our application makes use of xforms. A message box pops
Our PHP application makes use of json_encode($myObject) a lot, in conjunction with the mustache
In our Spring application we use clustered Hibernate Search with ActiveMQ which sets up
We use OpenFileDialog across our application to select files. So far, we never used
We are planning to use HTML 5 's Application cache in our application for
we use super-long Hashes for the Registration of new Users in our Application. The
OK, so we're writing our MFC application to make use of the built-in localization

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.