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

Url Rewrite for year, month and day

php apache url-rewriting

I want to achieve something like this: instead of;month=mm&amp;day=dd

MySQL: SELECT * FROM table WHERE field=“some text” doesn't work

mysql select where

I am trying to INNER JOIN two tables on a text field, but I can't get it to work.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.