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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:59:33+00:00 2026-05-25T14:59:33+00:00

Being relatively new to backbone.js, I’ve created several small tests from a simple model

  • 0

Being relatively new to backbone.js, I’ve created several small tests from a simple model and collection displayed on a page, to the few dollars worth peepcode screencast about backbone (which is very good actually)

but, I still see everything directly referenced, as:
there is a certain model called User, then you have a view that prints how that user model looks.

lets say a user opens the site, sees a login form, after the submit click, where do I store / how do I handle the connection to the server, for validation and testing if the username / password were correct?

would I need to save things like that in a separate model?

I think I’m still thinking too mutch about really well defined entities in my app, a user, who has contacts. and I get the feeling that I will need to create models for more than just these defined entities.

  • 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-25T14:59:33+00:00Added an answer on May 25, 2026 at 2:59 pm

    You are thinking correctly. Login is just a method performed on behalf of the user entity. For me, what seems best is to just append a login method to your user model. It will check this.get(‘username’) and this.get(‘password’) and make an ajax request for validation.

    This method should take in two callbacks, loginSuccess and loginError(error). When the login request comes back OK you should set some property on the user model: this.set({ authenticated: true })

    Your views could then userModel.bind(‘change:authenticated’, this.update); and update themselves appropriately.

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

Sidebar

Related Questions

I'm relatively new to python and scipy, being a convert from MATLAB. I was
Being relatively new to the .net game, I was wondering, has anyone had any
Being relatively new to functional programming, I expend lots of energy wondering is this
Being relatively new to javascript, AJAX and jQuery, I want to post 3 values
Being relatively new to Python 2, I'm uncertain how best to organise my class
Being relatively new to the software industry I have come across a question of
Being relatively new to C#, I've been researching custom events recently, and while I
Being stuck with a legacy database schema that no longer reflects your data model
Being new to test based development, this question has been bugging me. How much
Being really new to wx, I'm wondering if there is an IDE (especially for

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.