I need to fire an event after complete page gets loaded. I have used Backbone js library for my application.I have multiple ajax calls in each of the page.But i need to fire some code after completely page gets loaded. --------------Solutions--------
I am using backbone.js with coffeescript in rails application. I have many input element in backbone view, after rendering view focus of current input element lost. I have to keep focus on current element after rendering view. How can i solve this pr
I'm developing a website with backbone.js, and foundation.js. I create a backbone parent view, and append a backbone child view to it. this.myProfileModalView = new MyApp.Views.MyProfileModalView(); this.$el.append(this.myProfileModalView.render().el
I want to show tree in Backbone Marionette. For this i create a model applicationManager.Models.menuItem = Backbone.Model.extend({ initialize: function(){ var children = this.get('children'); if (children){ this.children = new applicationManager.Coll
I am developing an application with Marionette/Backbone. The app needs to upload files over an AJAX call (have this working). I want to give the user feedback on when they are able to select the uploaded file and proceed with modifying it. I don't kn
I've a rails developer trying my hand at backbone and using the Backbone.js application book - my first Backbone / Node / Mongo app so be gentle. I've poured over the similar questions and have been stuck for 12 hours now so I think it's time to thro
I'm currently programming the web interface for a mvc web application and I need to get the models which have their checkbox checked. At the moment this is the template i use to generate a single table row: <td><span class="userintern"&
I have a composite view called QueueItems, and then a itemView for each of them in the collection that will let me modify each of those elements. Each element needs to be able to select from multiple tag collections, e.g. States, Companies, etc. The
I have a Django view which returns JSON formatted settings configuration file. It works fine when I GET it in the browser. But when I try to fetch the Backbone Collection that's linked to it, it returns a 500 with this error message : "'list' object
I am new to backgrid (and stackoverflow) and I am curious if there is any column chooser for backgrid so that user can choose what columns are to be visible in my grid. I know there is one for jqgrid which can be seen in action here: http://www.ok-so
my backbone collection collection doesn't populate when i just pass it in as props to a react component. I have tried first fetching the collection using componentDidmount and componentWillMount, but that still didn't populate the collection. If I te
Sorry for the horrible post title but it's hard to sum up. I'm defining JS modules using the revealing module pattern in seperate files, wrapped in IFFEs, under the namespace "App". By checking for the existence of "App" in each file, they can load i
When I call Backbone.history.navigate, I want to be able to change a global variable. I want to set window.linkclicked = true; // when someone clicks a link and window.linkclicked = false; // when back button is pushed. Is there a way to do this usin
I'm trying to test a Backbone collection's fetch. I'm using Sinon's fake server to set up a fake REST endpoint. The problem is that it seems like the request isn't sending. I'm using Jasmine with Karma and running it through PhantomJS. The problem is
I have two views one being a ListView and one being a ListRow view. The ListView is responsible for showing the UI and handling the events on the search box. The search method is triggered on change and with the assistance of Backbone.search() I am g
I have a model called 'Playlist' I got back from the server which has an array of objects called 'videos'. When i fetch the 'Playlist' data from the server I need to turn 'videos' into a Collection. I update the models in the 'videos' collection some
I'm starting a Marionette on Rails application and I'm looking for a secure way to authenticate requests. I'm sure this has been done by many but I could not find a satisfying answer :( Here is what I've found so far: In rails, I can generate a token
I'm working with TinyMCE editor and I have added a simple functionality where you can select text in editor, click on the button in panel and then the popup shows up. Popup has a text box where you can enter some text and after click on a button the
I've recently changed my site from running on htaccess to nginx and for one of my pages it just shows the json response (for a single model) from sailsjs rather than rendering the page. This also only happens when opening the page as a direct link, u
I have a restful (php + slim + mysql) and AJAX web (backbone + jquery), they are not on same origin. It works fine before the user has logged in. It can retrieve the /booklist, login and so on... after the user has logged in, the restful will return