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 7963849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:43:01+00:00 2026-06-04T05:43:01+00:00

I have a web application where I am using Knockout js for client. I

  • 0

I have a web application where I am using Knockout js for client. I have a grid which has 3 columns, list price, discount and customer price. The list price get displayed in rounded values whereas discount and customer price needs to be displayed in 2 decimal places. Also, customer price should get auto-calculated if list price or discount changes.

To achieve this, I have onchange event on list price. Also I use, two observables, listPrice and displayedListPrice. List price to store unformatted value and displayedListPrice to store formatted value.

The following issue is in IE only – Inside the function I have a statement,
this.displayedListPrice(format(this.ListPrice));

The above statement cause onchange event to fire again. How can I prevent that?

Thanks!

  • 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-04T05:43:03+00:00Added an answer on June 4, 2026 at 5:43 am

    Sorry, I was gone for a while and didn’t notice the comments from fellow users.
    Anyways, this is what I did –

    <div class="clmn7" ><input class="number"  data-bind="uniqueName: true,value: displayedListPrice, event: {focus: pac.partsPricing.Part.prototype.onFocusListPrice , blur: pac.partsPricing.Part.prototype.listPriceChanged}, css: { pricechange : listPrice()!=masterListPrice(), nopricechange:listPrice()==masterListPrice()} , attr: { title: masterSPrice}, enable: viewModel.program().isEnabled() && status()!='Submitted' "/></div>
    

    So, instead of using onChange event to capture the event and do processing, I used focus and blur events to do the same functionality.

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

Sidebar

Related Questions

I have web application written in java using Eclipse. It has just one servlet
I have a web application which has 2 different versions deployed. 1 is an
I have a web application written using CherryPy, which is run locally on 127.0.0.1:4321
I have a small web application developed using Icefaces 1.8.2 and jsf 1.1 which
I have a web application using Java Servlets in which the user can upload
I have a web application built using Spring which contains some jobs. A typical
We have written Web application using ASP.NET MVC, which will be hosted in our
I have this web application using Spring Web Flow framework. In my main page
I have a web application using spring annotations extensivley and I have my proguard
I have created a web application using Visualstudio 2008 using C# on my computer.

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.