I have this Javascript view in my Rails 3 project:  app/views/expenses/new_daily.js.erb  var i = parseInt($('#daily').attr('data-num')) + 1; //$('#daily').append('agrego fila ' + i + ' <br />');  $('...
I have a large number of views (more than 50) which all extend from a single abstract base view, and therefore have a similar layout and many other features in common (event handlers, some custom methods and properties, etc).   I am presently using t...
behold, a backbone view render call:  render: function() {   $(this.el).html(this.template({title: 'test'}));  //#1   this.renderScatterChart();   return this; },   so, I call a standard render at #1. and then, i call a method [this time, it...
I have this code that when icon-edit span is clicked, it fires an action that opens a modal, however, at the same time, the click propagates to the view below it (personView). I want the action to execute and stop the propagation.  The only solution...
I want to use this fantastic Javascript Library on my little web project.  http://prettydiff.com/  I've downloaded PrettyDiff.js and ViewDiff.js  I've been researching on how to use it and I can't seem to find any examples on how to get t...
I have a collection that has a date field and I want to create a mongo view that filter all the documents by the current date. For example, I want my view to contain all the documents of the last 7 days.   I have a javascript script that creates the...
I have a case that uses view inheritance, and my code looks essentially like:  parentView = Backbone.View.extend({     events: {         "some event": "business"     },     initialize: function(){         _.bindAll(this);     },     b...
The site I am working on www.salonbkb.com when in a mobile browser will act responsive but will allow the user to use touch to move the site from left to right creating a whitespace on the remaining space after the drag.    Foundation.zurb.com does n...
I have a composite view:  var resultView = Marionette.CompositeView.extend({         template : ResultPanel,         itemView : ResultItemView,         initialize : function() {             ...         },         itemViewOptions : {             app :...
I would like to check if a Backbone.View is currently rendered in the DOM if not I don't have to rerender it. Can I check this somehow?  Regards...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.