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?

Member Avatar for LastMitch

@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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.