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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:25:44+00:00 2026-06-13T12:25:44+00:00

I am having difficulty resetting/refreshing/reloading an Isotope view based on a Knockout model. I

  • 0

I am having difficulty resetting/refreshing/reloading an Isotope view based on a Knockout model. I have extended an earlier fiddle to remove and replace items but its unreliable and breaks sorting.

    self.reset = function () {
        // Remove all services
        $.each(self.services(), function (index, value) {
            var serviceToDelete = self.services()[0]
            self.removeService(serviceToDelete);
        })

        // Add some back
        self.services.push(new Service('some service', 'and this is a description', 7, '01/01/2000'));
        self.services.push(new Service('another service', 'just another description', 2, '02/01/2000'));
        self.services.push(new Service('driving school', 'learn to drive', 4, '10/01/2000'));
        self.services.push(new Service('ice cream sunday', 'sweet cold and delicious', 3, '01/01/2002'));
        self.services.push(new Service('tootie fruity', 'a rootie', 6, '01/01/2003'));
        self.services.push(new Service('hand gliding', 'you can see your house from here', 5, '01/01/2012'));
        self.services.push(new Service('turkey dinner', 'is not just for thanksgiving', 1, '01/01/2011'));                
    }

I have extended the following jsfiddle with a ‘Reset’ button which simply removes all items from an observableArray and readds them one by one.

http://jsfiddle.net/8uxKF/2/

  1. It fails completely in IE10. The fiddles Run pane doesn’t even load.

  2. It partially works in Chrome, but after resetting a console error is output whenever a sort is initiated:

    Uncaught TypeError: Object # has no method ‘sortBy’

  3. In FF it works with a similar error as chrome. (but in my app fails to sort)

Can anyone help? I need sorting to work after resetting. I’m not sure if this is the ‘best’ way to reset as it seems to be causing issues.

  • 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-13T12:25:45+00:00Added an answer on June 13, 2026 at 12:25 pm

    I’ve reviewed the code and its fine, apart from one error on sortByID which I’ve corrected.

    Frustratingly and embarrassingly it seems jsFiddle was blocking one of the resources due to mimetype mismatch when served from GitHub. Just to be clear this was an issue with running external scripts from GitHub within jsFiddle.

    Final code posted to jsfiddle.net/8uxKF/3 for reference.

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

Sidebar

Related Questions

I'm essentially having difficulty pass dynamic variables to a view. I have php functions
I'm having difficulty understanding variable shadowing in JavaScript based on scopes. Consider this small
I am having difficulty deleting rows from my database. I have a delete button
Having difficulty making my javascript act the way I want. I have a button,
Having difficulty finding relevant search results... Given this model: public abstract class A {
I'm having difficulty getting my textarea to expand vertically automatically. I have some code
I'm having difficulty with this problem. I have a table with this structure: OrderID
Having difficulty articulating this correlated subquery. I have two tables fictitious tables, foo and
I'm having difficulty translating sql to linq syntax. I have 2 tables (Category and
Having difficulty indexing an attachment type in elasticsearch via the Tire gem. Not able

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.