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 8259667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:55:07+00:00 2026-06-08T02:55:07+00:00

! Correction The binding wasn’t it. As you add up to your schema, you

  • 0

! Correction

The binding wasn’t it. As you add up to your schema, you gradually create inconsistencies with missing values (in my case Relations). My .create() call was hitting Parse/Mongo in such a way that the model bindings called for a restart of the main view. Shorthand solution: wipe your data once in a while 🙂

…

My main view has _.bindAll(this, 'addOne', 'addAll', 'render', 'logOut', '...');
In another view I’m setting a Parse.Relation using these 2 chained methods:

1  // If you hit return in the add friend input field, create new Email model 
2  // and friend it
3  addFriendOnEnter: function(e) {
4    var self = this;
5    console.log("About to create email "+self.emailInput.val());
6    self.emails.create(
7      {
8        email:   self.emailInput.val(),
9        ACL:     new Parse.ACL(Parse.User.current())
10     },
11     {
12       success: function (email) {
13         console.log("Email added "+email.get("email"));
14         self.addFriend(email);
15       }
16     },
17     {
18       silent:true
19     }
20   );
21   console.log("Created email");
22 },
23
24 addFriend: function(email) {
25   console.log("Add friend relation to topic "+email.get("email"));
26   this.friendsRel.add(email);
27   console.log("Save topic");
28   this.options.topic.save({silent:true});
29   console.log("Render friend");
30   this.renderOneFriend(email);
31   console.log("Clear input val");
32   this.emailInput.val('');
33 },

The last log I see is line 21, it seems like addFriend isn’t called, and basically the app refreshes itself ie I’m thrown back to the main view which re-renders itself.

One direction I’m suspecting is that the main view is bound to any model changes including a .create() call.

How to unbind that specific call?

Thanks,
Gon

  • 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-08T02:55:08+00:00Added an answer on June 8, 2026 at 2:55 am
    1. I would add an an error handler to your create call, so you know if maybe that’s getting called instead of success.

    2. Have you tried stepping through the code in Chrome’s JavaScript debugger? Then you’ll know for sure which function is getting called.

    3. silent:true should be in the same options object as success.

    4. You could try creating the object with “var email = new Email(…)” or whatever, and then save it and call self.emails.add(email) in the success handler for the save.

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

Sidebar

Related Questions

I am binding a ListView a property that essentially wraps the Values collection (ICollection)
I have a simple datagrid to which I am binding a collection using ItemsSource.
I am binding a data grid to a collection of Task objects. A particular
I have a problem with the binding of the below parameter. The connection works
I need to populate a .net DataGridView from a collection physically (without data binding)
Given: <TextBox Text='{Binding MyCollection[MyIndex].MyProperty}'/> where: MyCollection is an observable collection of MyClass items MyClass
I tried to do some simple gamma correction on an image. At first, I
I have a sentence and correction model class Sentence < ActiveRecord::Base has_one :correction class
I can't get the code below to compile (see errors). Advice on correction would
Why can't <p> be nested inside <table> ? What is the correction I could

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.