Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Looking for a framework

$
0
0
Let me try to shed light on what I'm trying to do in the short term.  I feel like i'm writing way too much code in the js and html so I was thinking that a framework would help.  The general point of this app is to have checkboxes that can change the values of other checkboxes, so say I choose halfling, the price of the rogues list goes down by half, and other items have to be disabled.  Ideally, it'd be kind of cool to check off a race, and things I can't choose get highlighted in red or have a strikethrough and the checkbox is grayed out or something like that.

I'd like to find out a few things.
  • What is a framework and how do they help?  I know they create functions you can use more easily than straight js, but I'm still cloudy on why they should be used and how they can help.
  • see if I should be using objects to handle all of this, and how
  • link the label, the value, and the checkbox all into one referenceable item instead of having so many different variable names.
  • ways of resetting all, or specific things
  • find a way to have a list of all of this stuff and it's value and have the html be dynamic instead of writing out all of the code for each and every checkbox, label, and value.
I was looking at the tree hierarchy and thinking it looked promising, but I'm just wondering if I'm barking up the wrong tree.

Viewing all articles
Browse latest Browse all 3491

Trending Articles