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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:28:41+00:00 2026-05-29T10:28:41+00:00

I am using Ember.js to create a table from a json feed. I have

  • 0

I am using Ember.js to create a table from a json feed. I have a requirement to flash the values (within a table row) that are changing. How do I do this in Ember.js?

My template is shown below:

<tbody>
    {{#each Quotes.quotesController.content}}
        <tr>
            <td class="quote-name">{{name}}</a>
            <td class="quote-code">{{code}}</a>
            <td class="quote-value">{{value}}</a>
            <td class="quote-bid">{{bid}}</a>
            <td class="quote-offer">{{offer}}</a>
        </tr>
    {{/each}}
</tbody>

Here’s the code that fetches and updates the quotes:

fetchQuotes: function() {
    var scope = this;
    $.getJSON('/rest/quotes', function(data) {
        $.each(data, function(index, quote) {
            scope.updateQuote(quote);
        });
    });
}

Just as a comparison, in backbone.js, I was binding to change events at the attribute level and firing animations in the callbacks. For example:

this.model.bind('change:value', this.updateValue);

updateValue: function() {
    var td = $(this.el).children('.quote-value');
    td.html(this.model.get('value'));
    td.animate({color: animationColor}, 200)
      .animate({color: '#000000'}, 3800, 'easeInQuint');
},

I don’t know if such an approach is possible/recommended using Ember.js.

Edit:
I almost have it now. I can handle an event on a table cell and change its color to anything. See this jsfiddle – click of any cell in the value column and it will turn red. The only thing I don’t know is how to capture a change to the table cell value instead of a click event. Is there any such thing as a change event that I can capture?

  • 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-05-29T10:28:42+00:00Added an answer on May 29, 2026 at 10:28 am

    See the following jsFiddle (a modification of an answer another one of your questions). I think from there you can do what you need, but in short you need to make an observer that watches for changes to the property on your controller that is holding the array that you are modifying.

    Edit in response to the 1st comment:

    Here is a working solution in response to that comment: http://jsfiddle.net/ud3323/ykL69/

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

Sidebar

Related Questions

I have a single .jar file that I create by using the runnable .jar
I'm using SWFKit to create a native windows app from flash project. I want
I have an HTML document that is using to embed a control. In some
I have a page that, when accessed displays a table of information related to
I have created a custom control using VB.NET in Visual Studio 2008 that gives
I'm trying to create a SharePoint application that logs to ULS using a set
I want to create an assembly using IronPython can call it from C#. Here
A site I'm working on has Flash headers (using swfobject to embed them). Now
Using C# for ASP.NET and MOSS development, we often have to embed JavaScript into
I need to embed the fonts that I'm using in my TeX document in

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.