Backbone.js is a JavaScript library that provides structure to RESTful web applications.

learn more… | top users | synonyms (2)

0
votes
1answer
19 views

Collection create function firing add event too quickly

(Using Backbone 0.9.10) I have a list view of sorts where the user can click a button to show a modal view. The list view has a counter that shows the amount of items contained in the list. Clicking ...
1
vote
1answer
46 views

Symfony2, Backbone and Pushstate

I use symfony2 routing.yml for call main page: web_homepage: pattern: / defaults: { _controller: SWebBundle:Default:index } In this page i call Require, Backbone, use PushState, all ok, ...
2
votes
2answers
58 views

How to test AntiForgeryToken in MVC4 with backbone Single Page Application

I am having problems getting Microsoft's MVC's [ValidateAntiForgeryToken] to work with a Single Page Application (SPA) written using Marionette & Backbone. The problem seems to be that the MVC ...
0
votes
0answers
8 views

Backbone Router does not trigger for direct URLs - using Meteor

I am using the same basic Router code from the ToDo's example, but I am running into some issues. When I Router.navigateToItem(itemID) everything works. However, if I enter in a direct url ...
0
votes
2answers
35 views

jQuery plugin not working in a requirejs module

Here's what I have in require.config.shim (in main.js): 'jquery.tabs':{ deps:['jquery'], exports: '$' }, And here are the relevant parts in my module: ...
0
votes
0answers
12 views

Dropzone.js AMD inside Backbone view events

I'm using Dropzone.js AMD modeule in application built with Backbone and Require.js. Dropzone object is being created inside render() function of Backbone view. I'd like to create an event, that would ...
1
vote
1answer
48 views

How do you create an inline edit in backbone view?

so I am trying to get the fields in my backbone model being called in the view, editable and validated by the model. How do I go about doing that? I know there is an html way of doing ...
1
vote
5answers
2k views

Backend architecture for REST API-backed backbone.js app?

We're looking to develop an internal productivity app which is fairly JS-heavy (think: editable fields which turn into dropdowns, a lot of dynamic adding and removing of sections on the current page, ...
2
votes
2answers
42 views

Object-oriented models and backbone.js

Suppose I'm working with an API which returns JSON data, but which has a complex or variable structure. For example, a string-valued property may be a plain literal, or may be tagged with a language: ...
1
vote
1answer
23 views

Collection Sorting not working on Backbone.Marionette using restful Services

I am building a collection on Backbone.Marionette heavily basing myself on the example provided by David Sulc on his book 'A Gentle Introduction to Backbone.Marionette' available here ...
0
votes
1answer
34 views

How to keep the username - across all views in Backbone.js

In my app, i have no.of pages. each pages have a separate view for them. But in the header part i need to show the user name on all views rendering.. what would be the best practice for that.. i ...
1
vote
1answer
2k views

Backbone JS parse json attribute to a collection's model

I'm having trouble parsing a json to a model. Here is the JSON: [ { "name": "Douglas Crockford", "email": "[email protected]", "_id": "50f5f5d4014e045f000002", "__v": 0, ...
1
vote
1answer
104 views

unable to display json content in backbone

everything is working well on my app, but when i manually add the objects in the browsers console, i'm getting the json model data in the Get but it doesn't render on the web page. I'm calling a ...
2
votes
1answer
58 views

Backbone: Create collection from JSON error

jQuery(function() { var Hotel = Backbone.Model.extend({ defaults: { idHotel:"", hotelName:"RIU Pravets", hotelAddress:"Ezeroto N:1", ...
1
vote
2answers
1k views

Converting JSON data to Backbone Model with child Collection

I am working with a Playlist object which has some properties defining itself as well as a PlaylistItem collection. When I receive data from my server, I get its JSON response in my client-side ...

1 2 3 4 5 687
15 30 50 per page