XMen
XMen

Reputation: 30248

how to develope CRUD by backbone.js by database

I want to use backbone.js .

http://documentcloud.github.com/backbone/examples/todos/index.html

In this example it store in the local storage.but i want to store in the database so for this what changes i need to do in the code.

Please suggest .

Upvotes: 1

Views: 1305

Answers (1)

user18015
user18015

Reputation:

If I understand your question correctly it's something I was wondering about, I recently posted a question about RESTful persistence in PHP.

Since Javascript doesn't have access to the filesystem you can't use it to write to a database. You'll have to pick a backend server in another language like PHP, Rails, Ruby, whatever. There are a few suggestions for PHP at the link above.

Upvotes: 2

Related Questions