Questions tagged as 'javascript'

2
answers

Check if it exists before saving in moongodb and nodejs

I need to store an array in my MondoDB database. This I do without problems with the following code: My array of objects: [ { name: '1', type: 'float', value: 89.05, timestamp: 1535440000 }, { name: '10', type: 'float', value: 19.67, time...
asked by 05.09.2018 / 13:12
2
answers

JavaScript operations

I have a problem with this code I try to perform an operation that subtracts it from the result of two inputs is shown in another input but being empty at the beginning I mark the error NaN only gives me the result when running aga...
asked by 05.09.2018 / 17:33
1
answer

Problems with Safari and Google Maps API

I'm developing a page that uses geolocation and apparently everything works fine but in Safari version 11 I get an error geolocation My code is: function initMap() { var map; var mapCenter; var latit; var lon; if (navigator.geolocation) {...
asked by 04.09.2018 / 21:54
2
answers

Activate - disable class active of a nav-item with bootstrap 4

Greetings I would like to know if it is possible to activate the active class according to where you click, I tried with some script that I found on the web but they have not worked for me. The way I am doing it is: I have a php file where I...
asked by 24.08.2018 / 15:57
1
answer

How do I clean the html tags of a string?

I found the problem of HTML tags inside a String, the string I take from a SharePoint RTE-field: var clientContext; var list; var item; SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady); // Create an instance of the current...
asked by 24.08.2018 / 12:19
1
answer

How to traverse an array of html with JQuery or javascript?

I have the following code: <td> <input type="text" name="listPeso[]" class="input_next autoNumeric" data-v-min="0.000" data-v-max="999999999999999999999.999" data-a-sep="" data-a-dec="." onkeyup="runScript(event,this)"> </t...
asked by 23.08.2018 / 17:07
1
answer

Copy and Modify Input value to another Input, JavaScript

I have a question about a code that is killing me ... What I need is that I copy the input value in another input, but that it is different, that is to say without spaces and in minuscule everything, example: Input 1: Hello World Input 2...
asked by 29.08.2018 / 19:11
1
answer

I can not get a POST with express (NodeJS)

I started to develop a small cahtbot with IBM technology (Watson), I'm using NodeJS for the development part of the application. I am using Express as a routing framework, I have also divided the project into views, routes and the server. I foun...
asked by 28.08.2018 / 22:40
2
answers

I need to get the value of a select, that is within a cycle, and the name and ID is repeated

The select is inside a modal, and it is generated with a cycle, and I need in the function to know the specific value of that select <select id="lote" name="lote" style="width: 100%; height: 100%"> <? while ($registro3=@mysql_fet...
asked by 07.09.2018 / 00:33
1
answer

Progress bar in laravel

Colleagues, I am sending from the view to the controller a data matrix to save in database, but they are a universe of 6000 records and it takes time to process, not to confuse the user I want to show a progress bar like the one in the image...
asked by 03.10.2018 / 15:50