Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm still new at Backbone but I think Jon Saw is right. All of Backbone's models, collections, views show up as d and it's littered all over the minified code. If you see d, it's a good sign you can manipulate it like Backbone objects can.</p> <p>As for the empty array, I'm suspecting that your server side code isn't returning the collection correctly. Can you post an example of how you're handling that request and what you're sending back?</p> <p>I think I remember running into a similar problem and the solution was to make sure it's returning nice json data and that the content-type was application/json. But my memory is hazy.</p> <p>EDIT: You might want to play with the success and error callbacks available to fetch(), to shed more light on the situation.</p> <p>EDIT2: This past post might be related to your issue - <a href="https://stackoverflow.com/questions/9053405/how-to-post-backbone-model-data-to-db-through-slim-php-and-paris">Getting data to and from server with Backbone</a></p> <p>EDIT3: I posted a full backbone example from creating models, adding them to a collection, fetching extra models in the form of a collection from server and adding them to the existing collection (rather than resetting). It has views and subviews mixed in but some of the aspects seemed similar to this question so I am including the reference:</p> <p><a href="https://stackoverflow.com/questions/9424607/keeping-track-of-old-part-of-collection-and-new-part">Keeping track of old part of collection and new part</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload