Questions tagged as 'javascript'

2
answers

Is it possible that $ _POST only select textarea that have a value?

I have 2 web pages, one that is the main one (a form), which I am asking for some data by textarea and with a button I give them the option to generate more textarea to be able to continue writing. <script language="JavaScript">...
asked by 23.03.2017 / 12:59
1
answer

Can not read property apiRest

I have a problem with this api. this is in html <div id="summary"></div> this is in JS var consuKey = "ck_b04aa6f288ee9a5495dee9c5db0a6b136350e005"; var consuSecr = "cs_1f98d389d0f9b47cd3200023864cf9b7cba50574"; functi...
asked by 28.03.2017 / 18:36
1
answer

Changes in JS files give errors to update, Cause?

Every time I edit my javascript files and check the browser console they do not change, I have to close and open my browser many times, even delete the cache with CONTROL + SHIFT + R and even cut and paste the file to see the changes, what can I...
asked by 24.03.2017 / 13:24
2
answers

Download in Null

On my%% co_button I have a "Descargar excel" that leads to the following function in onclick : function downloadExcel(status) { $.ajax({ url: "http://localhost/WareHouse/reporte.php?status="+status, type: "GET", succ...
asked by 14.12.2018 / 22:44
1
answer

Send Array JS By ajax to PHP

I capture several inputs (the value) dynamically in the following way: <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> &...
asked by 06.12.2018 / 22:59
1
answer

Connection Node Js Mariadb

Hi, I'm trying to make a connection between nodejs and mariadb through Xampp, but when I run it does not return anything, I should return the 1 generated by the query, but nothing else does not send me anything. Does anyone know where I'm fying?...
asked by 14.12.2018 / 21:25
1
answer

Function to search in a chain the commas and replace them by point

I want to make a function that when you pass it for example this amount 20000,01 it returns me 20000.01 function cambiarDecimales(monto) { var montoEnv; montoEnv = new Intl.NumberFormat(["en-US"],{maximumFractionDigits:2}).format(m...
asked by 28.12.2018 / 20:16
1
answer

Select data-attribute within SVG

I have the following SVG inline on my website: <svg xmlns="http://www.w3.org/2000/svg" data-action="counter" class="button" width="320" height="90" viewBox="0 0 320 90"> <rect x="0" y="0" width="320" height="82" rx="10" ry="1...
asked by 23.08.2016 / 13:23
1
answer

Sort array of objects by 2 attributes in JavaScript

I would like to sort an array of objects by two attributes. The array is as follows: var unidades = [{"id": 1, "numero": 3, "bloque": "F"}, {"id": 2, "numero": 101, "bloque": "A"}, {"id": 1, "numero": 1, "blo...
asked by 17.08.2016 / 18:19
1
answer

How to select multiple rows in the Data Table jQuery and obtain a data for each selected row?

How can you select multiple rows of a Data Table jQuery, and get the data of the first column of each row selected ????     
asked by 17.08.2016 / 17:40