How do I install/use the backbone.js framework?

I'm new to JavaScript and was wondering how you install the backbone framework so that you can use it with javascript.


JOPLOmacedo’s first comment contains the essential answer, but I’ll elaborate it a bit:

Download jquery.js from the jQuery site, underscore.js from the Underscore.js site, and Backbone.js from the Backbone.js site. Use the “development versions” first, as this may help you in debugging. You can place the .js files in the same folder as your own test files, to keep things simple. (Later, you will find it better to place them in a separate folder.

In your HTML code, write (e.g. after all content, right before the end tag <body> if you use one:

<script src="jquery.js"></script>
<script src="underscore.js"></script>
<script src="backbone.js"></script>
// Your own JavaScript code here

This should get you started. You can use e.g. the relatively simple Hello world code in the Hello Backbone.js tutorial to check that the installation is OK, before working on your own code. (The tutorial uses remotely hosted versions of the .js file, which is another possibility.)

Need Your Help

Disable hot linking or direct download of my videos and only stream the video when it's displayed from a page in my website

regex apache .htaccess download hotlinking

I want to disbale hot linking of FLV and MP4 videos hosted on my server, except when the videos are displayed from a page which its URL starts with :

jQuery UI Dialog with Form Validation Plugin

jquery jquery-ui jquery-validate jquery-ui-dialog

I am currently using the bassistance validation plugin for my forms. And I am using a pop-up modal dialog box to house a form that needs to be validated, but for some reason it isn't calling my for...