Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am trying to create a simple .js file that will let me have some submit buttons here and there, with the text paragraph in the middle changing based on which submit button is pressed. Does the Javascript community provide either generic or specific templates that does this? It does not need to be exactly like this, just having a few submit buttons and text that changes is what matters.

share|improve this question

closed as off topic by Su', John Conde Jan 8 '12 at 17:18

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Sounds like you mean HTML form templates, which are not related to javascript in any meaningful way. The term "JavaScript templates" is non existent, JavaScript is a language and has no visual representation. –  Evgeny Jan 8 '12 at 3:00
Hmm I guess what I meant by "template" was some sort of pre-defined code that I could just go ahead and use. I'm not used to Javascript, but I've programmed in tons of languages that I'm sure that I can pick up from it fast just from looking at the sample code. –  onmylowrider Jan 8 '12 at 3:04
The best template is vapor.js –  Raynos Jan 8 '12 at 10:16
add comment

1 Answer 1

You might mean JavaScript library (or framework), there are several. As far as I know, these are the more popular ones:

And probably dozens other ones, google for "JavaScript framework". Or check this Wikipedia article or this stackoverflow question.

share|improve this answer
So these are basically APIs, right? –  onmylowrider Jan 8 '12 at 3:28
I'm using some software to create my .js files, and that software itself provides its own API.... not sure how I'd be able to incorporate the ones you gave me, but I'll try –  onmylowrider Jan 8 '12 at 3:29
I wouldn't call these APIs, "abstractions" might be an acceptable description. –  Evgeny Jan 8 '12 at 3:38
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.