Backbone.js is a JavaScript library that provides structure to RESTful web applications.
0
votes
0answers
5 views
RequireJS How to overide a backbone method globably
I am trying to override a the backbone fetch method with a snippet like that:
Backbone.sync = function() {
var savedFetch = Backbone.sync;
console.log('fetch is overriden');
return ...
1
vote
1answer
5 views
Backbone.js auto render view after destroy
I have the 2 views for my model. One creates the ul view, the other add the li elements. The views work but they do not update after the destroy function is called. I've tried various ways to bind ...
0
votes
0answers
6 views
backbone model fetch not working on mobile web browser
i'm working with mobile web app using require, backbonejs and jquerymobile. The fetch method is working well on web browsers but returning error with iphone, android browsers.
here's the screenshot of ...
2
votes
3answers
40 views
Why does this syntax of $ for jQuery and Backbone.js work?
For example, demo_view is an instance of Backbone.View, from this tutorial, this usage is recommended..
demo_view.$el.html()
As I understood, $ in jQuery is a function that should be used with ...
0
votes
3answers
31 views
JavaScript: unable to access object properties
I'm having trouble accessing the properties of a simple object.
This is what I get when I run alert(JSON.stringify(user)):
{"username": "david", "biography": "Hello world."}
But this is what I get ...
0
votes
2answers
16 views
backbone.js/marionette.js global region: body inside body
In my index.html I've got empty <body> tag. I've got a view that loads content for the view (through icanhaz). I would like to have a global region (bound to body tag) and to put some contents ...
1
vote
0answers
11 views
Backgrid catching a select-all events
(Let me preface with I am new to Backbone and Backgrid.) I am using Backgrid and select-all extension and I was having issues "catching" the event that the select all fires in my containing/parent ...
0
votes
1answer
17 views
backbone/marionette attaching HTML into a region
I'm beginning to use Marionette within an existing backbone application. I've got some HTML which I want to append into a region. In pure backbone, I could just do this.$el.append(html_code) and that ...
0
votes
1answer
22 views
Backbone.Model.save and promises
I have a Backbone model, when i perform a model.save() i get back a promise. My question is what do these promises yield to the done and fail callbacks?
what is 'value' here in both cases? (for the ...
0
votes
2answers
24 views
General structure of a Backbone application using Handlebars
Here's a basic outline of what's going on in my Backbone application:
The router creates a new Profile view and passes in the username.
When the new Profile is initialized, it creates a new User ...
0
votes
1answer
23 views
More information on jQuery snippet
var VarHere;
(function (VarHere) {
// Code here
var SomeView = Backbone.View.extend({});
$(function () {
VarHere.SomeController = new SomeView({
el: ...
0
votes
1answer
24 views
Fiddler - asp.net web api custom POST
I have a Backbone.js application and it's calling one of my WEB API custom POST method. Here is the code to my Custom POST
WebApiConfig.cs
config.Routes.MapHttpRoute
(
...
0
votes
1answer
20 views
can I listen to bacbone view changes in a model where the view was created?
I have a problem with backbone and i'm new in backbone so I'd like to ask for help here. I'm writing a single page application and i would need to listen to changes in a view from a model.
// I have ...
0
votes
1answer
15 views
get the element the view event is bound to in the callback
In Backbone, its pretty obvious how to make click events, but I'm having a hard time getting the actual element representing the selector to which the event was bound.
Do I have to check if I have ...
1
vote
1answer
19 views
backbone console log event triggering
I've got a underscore/backbone/require application and I would like to output all events that are triggered through backbone to the console (in other words: pass each event through console.log ...