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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:17:13+00:00 2026-05-21T11:17:13+00:00

There is a time table in my web page, I want the user to

  • 0

There is a time table in my web page, I want the user to be able to:

  • click on a cell and see which courses is at this time
  • click on an arrow and change de week

How should I build my JavaScript classes?

  1. I don’t use classes and I interact with the dom as we can see in 99% of the JavaScript code in the world

  2. I create one class TimeTable that will observe event (such as click on a cell), make ajaxcall, change the cell content etc…

  3. I try to make things perfect:

    • A) a class that will wrap all the html stuff (changing style/ content)

    • B) a class that will wrap my ajax call

    • C) a class that will wrap my business logic

    • D) a class to make all those things work together, observe the event from An and call C or D and then call A to change the UI.

IMHO the last solution is the best it’s kind of a MVC (An is the View, D is the Controller, and the two others are the models). But it seems like one of the less easy to implement.

Did you ever use this kind of technique? Is there any related blog / documentation to help me? Do you think it’s relevant? There is something better?

  • 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-21T11:17:13+00:00Added an answer on May 21, 2026 at 11:17 am

    Try backbonejs. It’s light weight MVC with full control over the view and html system.

    The design decisions of the application structure are varied and really should be upto you if you want to achieve your own functionality.

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

Sidebar

Related Questions

Every time I create a table I wonder if there is any performance difference
I have a MySQL table where there is a 'date_added' (date) field, 'time_added' (time)
Is there any time in which a reference type is more efficient than a
I want to display in my web page couple of show times and the
I have a web user control, that has a table with 3 columns 1)
I have a sorta unique question. There is a web application which takes 5.57mbs
I have a web page containing a table of jobs running on my system.
hi there i am working on an asp.net web page that first lets users
I have a web app in which I have set the maximum inactivity time
When generating a table of data on a web page, I usually give the

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.