DavidCadogan.ca Forums » DavidCadogan.ca

north face jackets resolve

(1 post)
  • Started 10 years ago by sean

  1. sean
    Member

    How to identify a BackboneJS Model serverside

    Yes, typically you will set up your Backbone models so that they have database row IDs for any objects you're working with. When one of them UGGs Boxing Day Sale is brand new on the client side and not yet saved to the server, it will either have a default or no ID, which doesn't matter since the server will be assigning the ID if and when the initial save transaction succeeds.

    Upon saving or updating a model item, Backbone expects the server to reply with women ugg boots classic short 5825 pink some JSON that includes any attributes that have changed since the save or update request was made. In the response to the initial save request, the server informs the client of a newly saved item's row ID (and you can also send along any other information you might need to pass to the client at the same time).

    Meanwhile, either the urlRoot parameter or a url function can be given to your models to characterize the ugg bailey button 5803 chocolate boots urls that should be used to send the various ajax requests to the server UGGs On Sale for a given model.

    Posted 10 years ago #

RSS feed for this topic

Reply

You must log in to post.