We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,644 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to store application level data or models in statemanager in Backbone.j

I have idea about StateManager in Backbone.js and read its Documentation and I also realized how to switch beteen different states. But i still don't know how can I store my application level data or models using statemanager and secondly are my states object which I addd into statemanager, they only related to views only or can be used with models ? I have problem to understand where should I used it in my backbone applicaiton. Please guide thoroughly?

2
Contributors
1
Reply
1 Month
Discussion Span
4 Months Ago
Last Updated
5
Views
touseef4pk
Newbie Poster
2 posts since Nov 2008
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

@touseef4pk

But i still don't know how can I store my application level data or models using statemanager and secondly are my states object which I addd into statemanager, they only related to views only or can be used with models ? I have problem to understand where should I used it in my backbone applicaiton.

Since I got no idea what you done so far. I assume you are trying to save data with backbone.js file?

This is the code that you need to do that:

http://backbonejs.org/#Model-save

To View the code then you need this:

http://backbonejs.org/#View-constructor

Remeber to link js file so it can work.

LastMitch
Industrious Poster
4,374 posts since Mar 2012
Reputation Points: 149
Solved Threads: 350
Skill Endorsements: 47

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0554 seconds using 2.68MB