0
votes
0answers
8 views
Destroy Backbone views on route change
My view should be destroyed after the current route position is left.
So in this schematic example the login view should be destroyed after the user entered his credentials:
I tried to solve this ...
0
votes
1answer
12 views
Let backbone views coexist or create and destroy one at a time?
I have a one-page app. A section of the layout switches between ten different views. Only one view is needed at any given time.
Is it better to let the ten views all exist and they can render and ...
0
votes
1answer
18 views
Create JSON representation of complex form with nested objects and update backbone model
I have the following backbone model
var Page = Backbone.Model.extend({
defaults: {
id: null,
metadata: {
name: '',
title: '',
...
},
...
0
votes
0answers
10 views
How to stop Twitter Timeline Widget from Polling?
I'm using the Twitter embedded Timeline Widget on the login page for a single-page Backbone application. When the user logins in, I change the page via Backbone routing and the Twitter widget is no ...
0
votes
2answers
31 views
Do you initialize your Backbone views from within a model or elsewhere?
Do you initialize your Backbone views from within a model or elsewhere?
I'm trying to figure out what the best way to organize model/views. Does it make sense to have your models initialize the ...
0
votes
1answer
27 views
Backbone - IE10 page everytime scrolls to the top
I have such div inside the page
<div class="test">Click here</div>
and event on it
events: {
'click .test': 'myFunc',
},
It opens dialog window, but under Internet Explorer v9 ...
0
votes
0answers
23 views
Backbone.js and Require.js tool r.js
So in my TODO applications i used Backbone and require.js. All is cool. I separated all models, views, collections to single files and use require.js to load them. After i tried to join all files to ...
0
votes
2answers
30 views
Javascript Backbone model design
Fairly new to JavaScript so it might be a noobish question.
At the moment for my project I'm using NodeJS for my server and Backbone for the client. The client will send a request to the server and ...
0
votes
2answers
33 views
Proper way to extend a Backbone Object using Require JS
I am using requireJS in combination with backbone:
define([
"jquery",
"underscore",
"backbone",
"models/modelA"
], function( $, _, Backbone, MyModel ) {
...
0
votes
1answer
17 views
Backbone + Require with Backbone.localStorage
I am building an app with Backbone and RequireJS, using this as a guide. Since Backbone is non-AMD, I am using the RequireJS shim, as described in the guide I mentioned above.
My main script looks ...
2
votes
1answer
24 views
Backbone routing for modular and multiple views
So I'm in a bit of dilema with my Backbone routing design and am trying to see what other folks think or have attempted to do to solve this problem.
The basic problem is that I'm writing an ...
0
votes
0answers
17 views
trigger method in Backbone from iframe
Hi I'm new beginner of backbone and I'm trying to upload a image with iframe.
What I'm trying to do is after submiting file, targeting iframe.
I want to trigger uploadComplete method in Backbone from ...
1
vote
0answers
23 views
Template two models in one view - Backbone/Marionette
I'm trying to use two models in one view, and template using both of them. I'm working with Marionette. Here is me initialization of the view:
main_app_layout.header.show(new APP.Views.HeaderView({
...
0
votes
0answers
15 views
Boostrap tab urls on detail screens with Backbone
My BackboneJS app has a detail view, say for a Book, that is represented by url like editorial/book/edit/4. The Book view consists of several tabs, based on TwitterBoostrap markup, e.g. tabs ...
0
votes
0answers
41 views
view not displaying correctly
When I use alert() in render function inside UserListView the output is displayed correctly. If I comment alert(), the view is not displayed.
I'm stuck on this. Why is that?
Here is the code :
var ...