Questions tagged as 'javascript'

1
answer

Vue 2 directive: src does not show image but loads HTML

I am creating this application with Laravel 5.4 and Vue 2 and I need to show an image if it is present or not. For this I used the directives v-if and v-else . To begin with, this is my JS code: var vm = new Vue({ el: "#app...
asked by 04.08.2017 / 19:26
0
answers

Save XML in asp Javascript

I have problems with Javascript to save an XML that comes from a textarea: function descargarArchivo(nombreArchivo) { var texto = document.getElementById('txtArea').value; var contenidoEnBlob = new Blob([texto], {type: 'text/xml'}); var lector...
asked by 21.08.2017 / 14:13
2
answers

Find row in datatable by 2-column value attribute

I have a datatable to which I add rows dynamically from 2 combos by means of js, in this way a row is generated with the 2 descriptions of the combos and in the value of the td I assign the id of the values of the combos, that is getting complic...
asked by 14.08.2017 / 19:57
1
answer

It does not load the php file correctly

Hello I am updating a web page, in which I have a form, the necessary data are filled in and with javascript, at the moment of sending the form, it does not open or does not detect the link well. At the moment of clicking on the edit button,...
asked by 03.08.2017 / 10:18
0
answers

what to do when several routes are repeated ruby on rails 5

What happens is that I want to code code just start in this role I want to program well is for a JavaScript and also calls it from controler the methods select_region, select_ciudad, select_planta are repeated in other models Rails.application...
asked by 09.08.2017 / 19:19
1
answer

Problem adding a value to a variable

I have the following code: if(filas[i] == filas[0]) { // donde filas es = 0 que es el encabezado de mi tabla for(var k=0; k <celdas.length; k++){ // donde celdas son el numero de columnas s = celdas[k].textContent; }...
asked by 03.08.2017 / 15:50
0
answers

Open and Close Categories

Language: PhP Description: At the moment the categories are open, the problem is that there are many products and I have enabled the option to open and close the categories. Thank you very much <?php...
asked by 09.08.2017 / 19:38
1
answer

How to select an element of the DOM for its id in ionic2

I have an element in DOM that is as follows: <input type="text" id="miElemento" class="miElemento"> <ion-item class="input_float"> <ion-label floating >Nombre:</ion-label> <ion-input class="x" id="nomb...
asked by 17.08.2017 / 20:19
2
answers

Optimize query in Django for Datatables

The project uses MySql as a database engine, it makes me slow to show one of all the records in a table that contains about 1500 records. To send the data to the template I use a ListView in the view and in the template I use a Datatables to...
asked by 10.08.2017 / 08:37
1
answer

Selection of checkbox with value equal to the values of the POST

I take care that when opening the list of chekboxes, the checkboxes are automatically selected with the same id that I bring from an array <?php $id=0; while ($clientes = pg_fetch_object($Cat))...
asked by 18.08.2017 / 00:33