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

  • SEARCH
  • Home
  • 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 6674415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:44:33+00:00 2026-05-26T03:44:33+00:00

How do you replace Backbone.sync to do nothing? My app has a Submit button

  • 0

How do you replace Backbone.sync to do nothing? My app has a “Submit” button which will do the AJAX POST for me, so I don’t want to use the auto-magic default behavior that Backbone.sync provides.

I also don’t want to use Backbone LocalStorage adapter as I am trying to make this site compatible with IE6 and 7.

That being said, I pretty much just want Backbone to do nothing except retain the records in the JS memory (similar to Spine.js). Is this even possible?

  • 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-05-26T03:44:33+00:00Added an answer on May 26, 2026 at 3:44 am

    The easiest and probably best way to do this is not to replace Backbone.Sync, but simply to ignore it. Here are the methods you don’t want to call:

    Collections:

    • fetch
    • create

    Models:

    • fetch
    • save
    • destroy

    If you avoid calling any of these methods, you will effectively ignore Backbone.Sync and be able to write your own code to do your AJAX calls.

    I wrote a lot of Backbone code without ever having a server call involved, when I started. There are no rules to say that you have to use all of Backbone’s capabilities. In fact, I would say the opposite is true. Backbone is written in such a modular manner with each area of functionality and specialization roped off so well, that you should only use what you actually need.

    Create your models in memory, call set and get on them to store data. Stuff them into collections with add and remove them as needed. Pass your models and collections to your views and render them out to the HTML DOM. Just avoid calling the methods I listed above and you won’t have to worry about Backbone.Sync.

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

Sidebar

Related Questions

I want to replace tag with tag, but not replacing all the children elements
How replace (use regex in PHP5) invalid characters in utf-8 string on white space
I want to replace the hard coded string Categories with a variable. How can
I want to replace the next expression with something simpler but i'm not sure
How to use fn:replace(string,pattern,replace) in XSLT is it like < fn:replace(...)/>??
is possible replace a plist file when my iPhone app is running? I'd like
I want to replace a #define INTERVAL_MASK(b) (1 << (b)) with a inline function.
I want to replace all non-numerical characters in a VARCHAR field in MySQL, because
I use a replace to wrap all the words in a string with <a/>
replace newline seems to be a question asked here and there like hundred times

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.