Questions tagged as 'backbone'

1
answer

How to integrate 'swipe' from Hammer.js in Backbone?

Hello! I've been trying all day to make a swipe work with a backbone and I have not had any luck. I have a code that works but it's pretty ugly and from what I've seen it can be structured better. The problem is that when I integrate it into...
asked by 12.11.2017 / 18:37
4
answers

get value out of click event with jquery

How can I get the document variable out of clcik? obtenerDocu: function() { $('#documentos-table tr').click(function(e) { e.preventDefault(); documento = $(this).closest("tr").find('td:eq(0)').text(); }); re...
asked by 11.09.2017 / 14:04
1
answer

Model synchronization with the Backbone database

I ask for your help to be told if it is possible to make a GET petition of a single model by making a set of one or more attributes of the model; I explain myself better: This is a query that returns a Collection of many models when I do...
asked by 16.05.2016 / 21:30
2
answers

Problem to link buttons with backbone.js

I just started using the backbone.js framework using router to generate urls in my html. I have 3 buttons defined so <ul class="list-inline "> <li><button id="boton1" type="button" class="btn btn-prima...
asked by 22.06.2016 / 15:37
1
answer

Collection Nested Backbone

I ask for your help to help me get the value of a key that is nested, when I render, it shows me the first level but I do not know how to get to the more internal nodes, the model is: { "ciudadDepartamento": "Bogotá", "estadoDepartamento": t...
asked by 15.05.2016 / 21:50
1
answer

Error in javascript backbone: A "url" property or function must be specified

I'm doing a design by mvc in JavaScript backbone, but when I implement the function to remove an element from the collection, I see this error: A "url" property or function must be specified This is the code: eliminarCliente: function(i...
asked by 21.05.2017 / 06:25
2
answers

include javascript / jquery functions in backbone template

I have the following template with a table. An Array is traversed and a link is created in the row of the table <tbody> <%for(var i=0;i<resultados.length;i++){ %> <tr onclick="window.open('#/ensayo/<%- resultados[i].tipoE...
asked by 06.10.2017 / 13:03
0
answers

because the data is not saved the first time I save it, but if it is saved the second time?

My problem is as follows. I have a form whose data is saved correctly. The problem is that when I am going to update (edit) the data that I saved previously (because I made an error when editing or that I was ...), the new data is not saved when...
asked by 09.08.2018 / 14:58
1
answer

Go from one view to another, and then return to the initial view without losing the state that you had

I want to know if there is anything that I can take advantage of backbone that allows me to pass information from one view to another and then return to the view that initialized the second, without losing the data loaded. This would be: F...
asked by 20.09.2017 / 19:08
1
answer

Routers backbones.js, problem with routes

I'm using the Backbone.js framework and I'm using the routers to create urls on my page. It turns out that I think I already have it, but when I open the Chrome console it says the following: backbone.js:7 Uncaught SyntaxError: Unexpect...
asked by 21.06.2016 / 15:58