Backbone.js is a JavaScript library that provides structure to RESTful web applications.
5
votes
0answers
8k views
Backbone.js error - Uncaught TypeError: Object [object Object] has no method 'set'
My Code:
I am new to backbone.js and trying to build an app with backbone.js and php. When I am trying to call "add" in the router, I am getting error - Uncaught TypeError: Object [object Object] has ...
4
votes
0answers
39 views
Pinterest Rich Pins and Escaped Fragment (#!)
I have a backbonejs website that sets and unsets meta information for specific pieces of content that need to be shared out, and cooperates with a phantomjs server (example) by using the #! standard ...
4
votes
0answers
417 views
PHP ZF2 - Restful controller Backbone PUT method incorrect parsing
I have an issue with my ZF2 based application and Backbone at frontend. Somewhere at frontent I run
this.model.save({
city_id: parseInt( this.$el.find( '#city_id' ).val() ),
from: this.$el.find( ...
4
votes
0answers
237 views
Cordova - Issues when a cross platform android app is run on Blackberry 10 alpha simulator
I am facing problems in running a cross platform android App in blackberry 10 Alpha simulator.
The App works fine when run in iphone, android devices.
But when I run it in blackberry 10 it doesn't ...
3
votes
0answers
184 views
A proper example of backbone views: Change attributes, CRUD, without Zombie Views
Trying to make a reasonable teaching model of Backbone that shows proper ways to take advantage of backbone's features, with a grandparent, parent, and child views, models and collections...
I am ...
3
votes
0answers
79 views
Method not supported on this platform
I'm using forge.prefs.get to fetch a cached user token and it works fine in iOs and web. I'm using backbone.js to render everything.
In Android, I get this error when trying to use the same call:
...
3
votes
0answers
81 views
Rivets Formatter not available
I am having trouble with getting a formatter to work properly in rivets.
<span class='person-gender' rv-text='person:gender | gender'></span>
When I check the formatters declared on ...
3
votes
0answers
389 views
column-toggle not working in jquery mobile 1.3.2, backboneJS and RequireJS with $.mobile.linkBindingEnabled = false;
I am having some trouble when I open a dialog in Table: Column Toggle. I use BackboneJS, RequireJS, JQuery Mobile, Phonegap 3.0
My configuration for prevent jquery routing is:
...
3
votes
0answers
292 views
Android native browser 2.3.7: Youtube iframe API “onReady” event not fired
I am testing my backbone app on Win/mac chrome & firefox, iPad, iPhone, Android 4.3, Android 4.1.2, and Android 2.3.7. The Youtube iFrame API is working as expected on all platforms except Android ...
3
votes
0answers
855 views
Backbone.bootstrap-modal.js not working
I am following this fiddle http://jsfiddle.net/evilcelery/4XZMb/
$(function() {
//Use BootstrapModal for object List editor
Backbone.Form.editors.List.Modal.ModalAdapter = ...
3
votes
0answers
561 views
Backbone paginator not paginating my collection
define([
'underscore',
'backbone',
'models/shared_object',
'backbone_paginate'
], function(_, Backbone, Shared_Object){
"use strict";
var myCollection= Backbone.Collection.extend({
...
3
votes
0answers
544 views
twitter bootstrap scrollspy and backbone routing
How would i go about using Twitter Bootstraps Scrollspy when I am using Backbone.js hash based routing?
Backbone router example, which creates page www.example.com/#somePage/123
var AppRouter = ...
3
votes
0answers
270 views
Creating children objects of not saved model in Backbone using Backbone-relational
I'm new to backbone. I have rails3 app. These are my backbone models:
class AppName.Models.Order extends Backbone.RelationalModel
paramRoot: 'order'
relations: [
type: Backbone.HasMany
...
3
votes
0answers
811 views
jqGrid using Backbone with paging
I see some examples of commercial app for support of MVC (asp.net) with jqGrid and I'm trying to determine the best approach in using the jQgrid with the Backbone.js client side mvc.
We are currently ...
2
votes
0answers
38 views
attaching a view rather than showing it on application startup
I have a Marionette App that is roughly set up in this fashion (irrelevant pieces omitted):
App = new Marionette.Application();
App.addRegions({
mainRegion: '#main-region'
});
App.AppRouter = ...
2
votes
0answers
45 views
Backbone.js : body become undefined when loaded for the 2nd time (windows mobile)
I am using backbone.js and phonegap to create a hybrid app for android,IOS and Windows. Below is the HTML, router.js and loginView.js code.
<!DOCTYPE HTML>
<html>
<head>
...
2
votes
0answers
51 views
How to combine a Backbonejs router with Twitter bootstrap tabs?
I've got some jQuery code combined with bootstrap in which I want to change some stuff around so that I can use Backbone.js. I've come quite far, but now I'm having some trouble with the tabs that I ...
2
votes
0answers
84 views
Chromecast crashes
I'm working on a social wall that is powered by the Google Chromecast. Everything is working well, but after a few minutes the Chromecast suddenly crashes without any errors.
I set up a custom ...
2
votes
0answers
891 views
“Uncaught Object” Error while loading requirejs
I am using requirejs-backbone to display list of users:However I'm getting this "Uncaught Object" error when i load the page. I debugged it and saw its my main.js that is causing the trouble. Below is ...
2
votes
0answers
54 views
Router instance differing in BackboneJS
What is the difference between use as this.initialize(); within router.js in BackboneJS and
require(['router'],function(Router) {
router = Router;
router.intialize(); ...
2
votes
0answers
83 views
Backbone integration tests: Zombie.js and RequireJS, how to?
I'm trying to test my Backbone.js web application.
Since this application is basically only consuming web services, there is not really business logic inside, and the app is simply addressing calls to ...
2
votes
0answers
64 views
Ti Alloy data binding: unable to bind a specific Backbone model instance to the view
To all the Ti Alloy experts out there:
There are a couple of questions out there already dealing with this same problem, none of them marked with an accepted answer and certainly none answered to my ...
2
votes
0answers
52 views
Backbone relational into ItemViews?
UPDATE I am still not 100% but I made a fiddle that seems to be working well NEWWORKINGFIDDLE I am still testing it to see if there are any caveats, but this seems to work great, looks like I can drop ...
2
votes
0answers
20 views
Express.js controlling headers for IE
Backbone application (served in Express.js) is working ok in other browsers, except in IE. I managed to prevent IE from caching requests (GET for the most part). But I am still expecting strange ...
2
votes
0answers
205 views
Backbone Uncaught TypeError: Object [object Object] has no method 'call'
if I set attributes of this.toolBar before "new ToolBarView({model: this.toolBar})" ,it works well. But when I set after the it, I get an error "Uncaught TypeError: Object [object Object] has no ...
2
votes
0answers
145 views
bacbone.marionette js model fetch error IE8 - cross-domain issue?
So many posts out there on backbone js model fetch not working in IE8. Always produces error callback. Succeeds everywhere else: IE10+, Chrome, FF, Safari, etc. Just not in IE8.
One problem in ...
2
votes
0answers
126 views
Browser freezing when updating backbone model?
I am working with the facebook api, I am trying to update an existing model in my localstorage collection with some attributes from a facebook object.
fbUser: function(e) {
var self = this;
...
2
votes
0answers
118 views
Performance issue with Express.js
I am having performance bottleneck with Express.js.
The scenario is as follows. Client is Backbone/Marionette/RequireJS full SPA.Server is written in sails.js. Sails is being used only as a REST ...
2
votes
0answers
125 views
Chrome auto populate won't trip bootstrap-acknowledgeinput NOR jqBootstrapValidation
I use bootstrap-acknowledgeinput to make those nice checkmarks and found jqBootstrapValidatin as well, I use a two-stage browser validation, bootstrap-acknowledgeinput makes sure the field is not ...
2
votes
0answers
104 views
Page is getting hanged on clearing an backbone views array
i am clearing a backbone array by the following code but i see the browser is getting hanged when this.views = [] is executing.
resetView : function(){
this.views = [];
},
Did anybody came ...
2
votes
0answers
312 views
Backbone.js - FTScroller Cannot call method 'createDocumentFragment' of undefined
I used backboneJS to load a template and later render the template followed by initiate the FTScroller by requireJS. I cannot find how to fixed and couldnt find any documents for using with Underscore ...
2
votes
0answers
242 views
Backbone Marionette AppRouter passing invalid arguments to function calls on Internet Explorer 8 (IE8)
I've set up a Backbone Marionette application as follows in my application
CL.Modules.Users = (Users, App, Backbone, Marionette, $, _) ->
Users.Router = class Router extends CL.AppRouter
...
2
votes
0answers
649 views
Bootstrap Backbone.js models from django model with TastyPie
I am using Django + TastyPie + Backbone.js. I am trying to figure out how to bootstrap the initial data for the models on the first request, instead of fetching them after the initial page load as ...
2
votes
0answers
770 views
Uncaught TypeError: Object #<HTMLDivElement> has no method 'detachEvent' - on YouTube player close
I keep getting the following error whenever I close a Backbone view, from the error it seems like the YouTube player is not closing nicely:
Uncaught TypeError: Object #<HTMLDivElement> has no ...
2
votes
0answers
128 views
Backbone.js CORS strangeness
I get some strange behavior in Chromium when connecting Backbone.js to an API on a different domain. When I do:
this.collection.fetch({
headers: {
Authorization: "Bearer " + accessToken
...
2
votes
0answers
683 views
Testing backbone router with jasmine and sinon. Cannot call the pushState.
I was following this question to test the router. My router is really simple:
App.Router = Backbone.Router.extend({
routes:{
"": "index",
"help": "help"
},
help: ...
2
votes
0answers
242 views
Handlebars templates rendering in DOM before compiling
I recently noticed that in my Backbone Marionette app, some of my API calls are taking longer than expected. In my network tab, I'm seeing image requests for things like %7B%7Bavatar%7D%7D and ...
2
votes
0answers
73 views
RESTful route for many-to-many with double records in a Backbone application
I have a database schema with Reservations and Products.
A reservation can have multiple products and a product can have multiple reservations.
A reservation can also have a product multiple times.
...
2
votes
0answers
254 views
backbone + rails TypeError: List.Header is not a constructor
I am trying to follow along with the tutorial I purchased from this site: http://www.backbonerails.com/
I am following along with the 5th episode of the series, "Getting Up and Running - Part 1".
At ...
2
votes
0answers
57 views
Can I set url root in spine.js router?
Backbone.js provides an option to set the root url
Backbone.history.start({pushState: true, root: "/public/search/"}
Is this possible somehow with spine.js?
2
votes
0answers
492 views
Bootstrap is murdering Backbone/Marionette view events
Backbone view event block binds perfect and awesome until you call a boot strap method on an element. Let's say you have this in your view:
events: { 'click .menu li.edit': '_doSomething' }
Then ...
2
votes
0answers
292 views
Using Backbone.js Router with No Hash
I am building a multi-page application and would like to leverage Backbone's Router to initialize my views on page load. I haven't been able to find a way to leverage routers without using hashes and ...
2
votes
0answers
476 views
Backbone and jquerymobile navigation issues - hash in URLs
I am using backbone.js and WebMatrix. I have problems with hash(#) in url though. To be more precise, I have on my router file this code:
routes: {
"" : 'myBooks',
...
2
votes
0answers
269 views
zend_rest + mysql + backbone
I implemented a RESTful application with Zend_Rest that saves info in a mysql db.
I'm going to handle the view with Backbone.js.
I'm looking for just a simple CRUD example. How to do that?
I didn't ...
2
votes
0answers
465 views
Facebook Javascript SDK Cookie
i wrote for my Node.js Applikation a model (backbone), that realizes the authentication with Facebook Javascript SDK.
My modelcode is here:
define(['jquery','underscore','backbone'], ...
2
votes
0answers
985 views
User Authentication using Devise, Backbone.js and Marionette.js
I'm using a pretty standard devise authentication setup in Rails 3.2 using token_authenticatable. It works great, but I've decided to re-write my application using backbone.js and marionette.js for a ...
2
votes
0answers
396 views
Backbone.sync – Collection using ajax as well as Socket.IO/WebSockets
I have a Backbone application, which has a collection called Links. Links maps to a REST API URI of /api/links.
The API will give the user the latest links. However, I have a system in place that ...
2
votes
0answers
215 views
Backbone and RequireJS shared collections not persistent
I have a backbone + requireJS app where I use a AMD module called Globals to store some collections in a Global namespace. This is set up like so:
globals.js
define([
'config',
'underscore'
], ...
2
votes
0answers
751 views
How to set up backbone and tastypie to properly send the api_key and username when doing a POST request
When I do a request through curl, passing the username+ApiKey through the url like:
curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"question": "Is a test yo?", "pub_date": ...
2
votes
0answers
134 views
Why use Backbone JS integration with Rails
I am relatively new to Rails and backbone. I learned that some people integrate Rails and backbone in their app - but I do not clearly understand do people do that.
Rails is an excellent MVC ...