Questions tagged as 'javascript'

1
answer

How to insert an element in an array of jsons from a form?

<script> $(document).ready(function(){ $.getJSON("sampleJson.JSON",function(data){ var sample_data = ''; $.each(data,function(key, value){ sample_data += '<t...
asked by 06.09.2018 / 18:59
0
answers

Add and subtract within the same javascript field

I need to know, how within an input that in each line returns the value of 0 or 1 (as the case may be), we can add how many 1 and how many 0 there are in total, so we can add and subtract the final value of the amounts to generate a charge based...
asked by 30.08.2018 / 16:38
0
answers

Error with requires in electronJS

Dear, I have an error that is driving me crazy, I can not find the solution to something as simple as requiring a JS file from my app in electron. I want to include my JS file as the image shows: And he tells me this error:     
asked by 04.09.2018 / 19:26
0
answers

How to send form from a modal window, without refreshing the page that calls it

Could someone give me examples? I found some examples, among them the idea of putting the target of a form to an iframe that is hidden, I do not think it is the best solution, can someone give me an example? I read that with ajax it can be...
asked by 01.09.2018 / 01:46
0
answers

ngrest javaScript client

How can I record data from a c ++ structure (being this server with ngrest) from java script. the structure that I have in ngrest to register through json is this: ==========================encabezado======================= #ifndef SERVIDOR...
asked by 01.09.2018 / 01:30
1
answer

pass parameters of evnto onclick to javascript function

//Obtener los permisos asignados al usuario $permisosAsignados = $permisos->listarPermisosMarcados($cedula,$id_item); //mostramos los permisos si estan o no marcados while ($reg = $permisosAsignados->fetch_object()){ $html = '<li>...
asked by 27.08.2018 / 22:32
2
answers

Error sending data by ajax to the controller

My function called register does not send the data to the controller even though everything is fine, it only returns error, but how is it possible? if in the condition I say, if the field is empty I return error, but it is not empty I should ret...
asked by 27.08.2018 / 16:32
1
answer

Extract data with API / JSON

My query is as follows, I have a rest API this is the url ( link ) and what I want is to make a GET with a Json . Search the internet for examples with curl but I have never worked with that extension and I do not know if it goes...
asked by 27.08.2018 / 20:19
0
answers

sockets, how many connections are allowed in a port?

I have this script in nodejs. it works in the following way, I have three gps, which point to my server, at the moment I had to make my ip public and I have assigned a port where the GPS data will arrive. 'use strict' const net = require('net...
asked by 27.08.2018 / 20:06
0
answers

I can not export html table with the SheetJs library solution?

Every time I click the button the saveAs function tells me in console that it is not defined. $(".btn-buscar").click(function (e) { e.preventDefault(); var workbook = XLSX.utils.book_new(); var worksheet = XLSX.utils.table_to_shee...
asked by 27.08.2018 / 18:38