Tagged Questions
2
votes
0answers
21 views
Backbone.js: How to queue pending sync events to server?
I would like my Backbone.js based web app to function offline. Upon detecting offline state, how can I queue up Backbone's sync events so that they're sent to the server after connectivity is ...
0
votes
0answers
20 views
Backbone.js Model's initialize method not called using Collection fetch
Given a Collection
Tools = Backbone.Collection.extend({
model: Tool,
url: "js/data/tools.json",
defaults: {
model: Tool
}
});
And Model:
Tool = ...
0
votes
1answer
30 views
Backbone.js, cannot set context on a callback
Ok, so I am working on a method to override the fetch method on a model. I want to be able to pass it a list of URL's and have it do a fetch on each one, apply some processing to the results, then ...
-1
votes
0answers
16 views
Phonegap android update issue
i've developed an app by backbone,phonegap on android. If i update the db online the app on mobile device doesn't see the change but on browser (chrome) works correctly.How can repair?
This is a view ...
0
votes
1answer
27 views
How can I get a change value event from one view to trigger a method in another
How can I get a change value event from one view to trigger a method in another? I'm trying to call the zoom method in DateView if the JQuery slider value changes, but I can't seem to get it no matter ...
1
vote
1answer
46 views
Saving backbone model on parse.com
i can save a model on parse.com writing:
var persona=new Person({username:"filiberto",password:"filiberto"});
persona.save( {
success: function (persona) {
console.log("modello salvato nel db");
...
2
votes
1answer
35 views
Understanding Backbone and Marionette View lifecycle
I'm new to this world and I need to understand some of the concepts of Backbone and Marionette. Here I'm trying to explain some of the concepts I'm learning. It would be great to having some feedback ...
0
votes
2answers
29 views
Backbone Collection length vs size()
It seems redundant to me that Backbone Collections have both a length property and size function that return the same result. Is there a reason for this?
2
votes
2answers
73 views
Backbone.js - Best Practice for Implementing “Instant” Search
Several places in my Backbone application I'd like to have an instant search over a collection, but I'm having a hard time coming up with the best way to implement it.
Here's a quick implementation. ...
0
votes
1answer
28 views
Re-render view without models changed backbone
i'm rendering a view from a collection of user.When a specific attribute(Status=online,offline) in a user change the view correctly show on the dom the value of attribute changed. But if i want render ...
0
votes
4answers
2k views
Backbone Marionette: Marionette.Application causing Require.js module load error, “'Error: Module name 'App' has not been loaded yet for context: _”
I'm trying to include the App instance to use it's event aggregator as shown here
I get an error when I include the instance in a view.
Kicking things off in the Requirejs config file, from ...
0
votes
1answer
36 views
REST resource call from JavaScript
I have a web app which has JS code as follows (uses Backbone.JS for the model);
var StudentDemographic = BaseModel.extend({
idAttribute: 'studentId',
url: ...
0
votes
0answers
21 views
Cache memory issue mobile device
i'm developing an app by backbone and db on parse.com.
I've written an alert code to print the user(2 only user) into db:by browser the app alert correctly the two user that are in db but by mobile ...
0
votes
1answer
37 views
Is this pattern correct for performing region switching with Marionette?
This question is based on my previous one Switching from a region to another in Marionette, views are not rendered correctly. It differs from it since I'm asking if the approach I'm following is ...
2
votes
2answers
36 views
Backbone Create
For some reason this.collection.create() is returning an error, but interestingly, the error message seems like the model I just added to my collection.
this.collection.create({
name: ...