All Questions
Tagged with jquery backbone.js
23 questions
6
votes
1
answer
2k
views
Backbone.js dynamic table
I have been trying to learn backbone.js and I thought the best way to learn it is by writing a dynamic table (i.e. add, edit and delete rows of data). I am very familiar with Node.js (back-end). Any ...
3
votes
5
answers
278
views
Selectable date filters
I created a simple app with Backbone and Marionette. In a view I created an onRender function.
I created a page that displays a Report with a date filter, using a select tag and affect to an input ...
2
votes
1
answer
268
views
Shipping calculator consisting of one field
A made a shipping calculator, which consists of one field that is validated.
jsFiddle
HTML:
...
2
votes
1
answer
73
views
Rendering comments in a Backbone view
I want to make show/hide logic more maintainable in my codebase.
Because they are too faraway located in separate js files, it hard for people to maintain.
The flow in my codebase is:
require.js ...
1
vote
1
answer
841
views
Managing collection views, adding/removing views, and listening for events
I have two collections - Movies and Watchlist. Both of these have Views that output ...
4
votes
0
answers
93
views
Backbone learning piece, Movie Application using Views, Collection, Models, Routes and Localstorage
I have created a Backbone Movie app as part of a learning exercise, the app is hosted on codepen although I actually have it built on my local but thought this approach would be handier for code ...
1
vote
1
answer
171
views
Menu visibility toggle method
I've just created a method that toggles menu visibility. At the moment I've gone with an if..else which checks my flag and acts ...
1
vote
1
answer
2k
views
Backbone/Marionette form with list of inputs
Using Backbone/Marionette, I'm building a simple widget that looks like:
I'm hoping to get some feedback on my approach because I think I may be doing it wrong.
jsfiddle
...
6
votes
1
answer
1k
views
Simple JavaScript Backbone.Js tool to highlight multiple search terms
I wrote a simple JavaScript tool to highlight multiple keywords at the same time in some text. It uses different color for each keyword, and also shows the count of matches.
I'm using Backbone.js ...
3
votes
1
answer
2k
views
Clicking child view and preventing parent view from running dblclick event
I have a parent view which has a dblclick event handler bound to it. I also have a view which is a descendant of the parent. This child view has a click event handler bound to it.
Currently, my code ...
8
votes
1
answer
292
views
Interactive API documentation page of a RESTful dictionary API using Backbone.js
I'm working on the interactive API documentation of a RESTful dictionary service.
The page should let testers try the different API calls,
by playing with the parameters using a simple web form.
...
3
votes
1
answer
1k
views
Validating a model and focus to the element if validation fails
I am using Backbone Marionette - I would like to set the user name and password if that passes the model validation method.
I am highly confused with that. Please show me a handy approach or correct ...
7
votes
1
answer
258
views
MV* Pattern for a board game
I have made a small game in Javascript, while simultaneously learn about the ever so popular model view controller. The game is this, there are 3 players(green, purple, yellow) and they have to try ...
2
votes
1
answer
87
views
Proper techniques for allowing many views to subscribe to window.unload?
I would like to execute code for many views whenever the window is unloaded.
For instance, I could have something like this in a view's initialize:
...
5
votes
2
answers
17k
views
Simple registration form with Backbone
I am trying to create simple registration form with Backbone. I need to validate fields on blur, and whole form on submit.
HTML:
...