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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:06:05+00:00 2026-06-14T19:06:05+00:00

My question doesn’t pertain to any specific piece of code that I’m working on,

  • 0

My question doesn’t pertain to any specific piece of code that I’m working on, but is more generally related to best practices for structuring a web application, or, to be more specific, suggestions for structuring a specific kind of web application that I am working on. In this case, the application currently is not built according to any paradigm (like mvc) and I don’t know if that’s a good thing or a bad thing, given the specifics of what it does.

The application allows users to fill out web forms which are dynamically generated. In constructing these forms (using jQuery/AJAX predominantly) I have to pull admin-generated information from the database which dictates how the form is structured while also pulling user-generated information from the database which populates the form’s inputs with content. I have tried to keep the two (structure and content) conceptually separate (or at least distinct from one another) throughout the code, but I’m realizing that for the form to be generated as I want it, they kind of have to be mixed together.

For example, the forms themselves are relatively complex, giving administrators the ability to create different sections in the form which allow users to fill out multiple entries for each section (so, an administrator might create a section called “past employment” allowing a user to add multiple entries using that same collection of inputs). And so, to create the form, I start at the top and work down the hierarchy:

  1. create the form using the admin-generated structure;
  2. create the sections using the admin-generated structure;
  3. (in the case of multiple-entry sections) create entries using user-generated content;
  4. create inputs using admin-generated structure;
  5. populate inputs using user-generated content.

It’s the switch back and forth between looping through structure and looping through content which I think is a bit sloppy, if not conceptually, than at least in the way that I have been implementing it. It seems to me like the switch is a necessary one to make, but I’m stumped when it comes to a way of doing it elegantly. This where I think that learning a thing or two about how programmer’s generally structure these types of things would help (I’m not professionally trained…) Is there some existing paradigm or some generally accepted methodology which would help me keep all of the components of the form’s structure separate from the user-generate content which populates them while also facilitating the hierarchical construction of the form?

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-14T19:06:06+00:00Added an answer on June 14, 2026 at 7:06 pm

    There are a bunch of javascript frameworks designed to solve your problem. Checkout backbone.js or knockout.js. Both are excellent.

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

Sidebar

Related Questions

I know that question doesn't make much sense, but here goes: Times Table Authority
I'd like to apologize if my question doesn't sound very much specific, but i
This post asks this question but doesn't really give an answer, so I thought
The question from title doesn't need more details.
Referring to question Spring Autowiring stopped working on GAE I ask: why doesn't AppEngine
Sounds like a stupid question, doesn't it? But the page on the Jettison project
my apologies if this question doesn't make much sense, but I'm new(ish) to Actionscript,
I am sure the title of my question doesn't make much sense. But here
First, I know this question doesn't exactly belong here, but I'll explain later why
Sorry if this question doesn't make any sense. I'm currently in the midst of

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.