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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:58:38+00:00 2026-05-22T15:58:38+00:00

How would you implement this app in JavaScript using principles of MVC? As you

  • 0

How would you implement this app in JavaScript using principles of MVC?

enter image description here

As you can see, the app basically has 3 views: “Sidebar”, “Visualization” & “Timeslider”. The underlying model must keep track of selected countries and year.

When initing the app, it should load a json file that populates the model with data. With some sort of event system (please advice), the controller should be notified of a stable model, and corresponding views should be set.

For example, adding a country in the sidebar should trigger data reload, followed by updating of x/y scales of the visualization view to accomodate for more countries etc.

How would you separate the logic from the views (what would go in the model, view & controller respectively) and what libraries would you use? (especially re. event handling).

Code is much appreciated … 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-05-22T15:58:38+00:00Added an answer on May 22, 2026 at 3:58 pm

    For this kind of application I suggest you to look into backbone.js.

    Which basically is:

    Backbone supplies structure to
    JavaScript-heavy applications by
    providing models with key-value
    binding and custom events, collections
    with a rich API of enumerable
    functions, views with declarative
    event handling, and connects it all to
    your existing application over a
    RESTful JSON interface.

    You can take a look at Views on the backbone.js documentation; they have a huge amount of examples for you available, which will be more helpful than me providing a complete solution using backbone.js. They also have several demos with fully built apps ready fo you to base off.

    Update: Also take a look into spine.js which is really similar to backbone but it’s not the same, from their F.A.Q the difference is:

    Whoah – your API looks really similar to Backbone. Why should I use this Instead?

    Well, it’s true that Spine
    was inspired by Backbone, an excellent
    library, and its controller API is
    very similar. However, the
    similarities end there. Internally the
    library works very differently. For
    example, Spine has no need for
    Collections, which are required for
    pretty much every model in Backbone.
    Spine provides a class library, and
    has very different ideas when it comes
    to server sync. Lastly, Spine is much
    simpler and half the size, go and
    check out the source.

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

Sidebar

Related Questions

I am developing an iPhone app and would like to create some sort of
I am using iTunes file sharing in my app, and need to put Core
I have a App Engine/Python/Django application which has grown and been modified over the
I'm pretty new to Servlets and JSP and to using databases. At the moment
Im coding a small app more or less like a word game. There is
A couple of weeks ago i have started my research in Iphone app development
In IronPython I am trying to call a PythonFunction with different numbers of arguments
I've created an NSOperation in the queue like so: ImageLoadingOperation *operation = [[ImageLoadingOperation alloc]
I'm writing some simple queries which return a single value and I'd like to
I'm trying to develop a web based digital asset management application. I'm planning to

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.