Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9189527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:15:25+00:00 2026-06-17T20:15:25+00:00

I do have some data in the local systems. which i am implemented with

  • 0

I do have some data in the local systems. which i am implemented with by backbone. as a doubt is it possible to sync my function with local data add or remove?

or will the backbone only work on the server response? if it work even in the localhost, how can i sync my local request i have made here?

any one looking this rquest, please don’t mind me, i am very new to backone and tight position to make a project.

code i written:

(function($){

var list = {};

list.model = Backbone.Model.extend({
  defaults:{
    name:'need the name'
  }
});

list.collect = Backbone.Collection.extend({
  model:list.model,
  url : 'data/names.json',
  initialize:function(){
    this.fetch(); // how can i sync?
  }
});


list.view = Backbone.View.extend({
  initialize:function(){
    this.collection = new list.collect();
    this.collection.on("reset", this.render, this);
  },
  render:function(){
    _.each(this.collection.models, function(data){
      console.log(data.get('name')); 
    })
  }
});

var newView = new list.view();    

})(jQuery)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:15:26+00:00Added an answer on June 17, 2026 at 8:15 pm

    In short yes, to accomplish this you basically sync/save your data to local storage.

    You could do this manually by overriding your sync method, but you will probably want to take a look at backbone.offline which is meant to do that for you.

    Update:

    It looks like backbone.offline is now under long reconstruction, for anyone else looking for an offline solution you might want to have a look at backbone.localStorage (which backbone.offline was in part based on but which has now been more recently updated) or at Backbone.dualStorage.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some data which (quite reasonably) uses null and false for different meanings.
I have some data which i need to make some statistics. I need to
I have a piece of code which combines an in-memory list with some data
I have created a drupal module which displays some reporting data. I would like
Windows Mobile 6.5 I have a process which uses System.Threading.Timer upload some data to
I'm developing an app which will save data to the local file system. The
I have some data loaded as a np.ndarray and need to convert it to
I have some data from log files and would like to group entries by
I have some data files in the resources/ folder for my Rubymotion project. How
I have some data and need to create a json file with this structure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.