Questions tagged as 'javascript'

1
answer

Rendering map using API with spring boot

I'm developing a web application using spring boot and I'm trying to implement a map on the main application screen. The latitude and longitude are being picked up in the mobile application, so I'm doing a CartDTO to get submit the coordinates o...
asked by 13.07.2018 / 05:43
1
answer

Filter system by category

I wanted to do a search system where I would search for data typed according to the selected category, but I do not know where to start. I'd like to add the filter option to category followed by a _<input type="text">_ for th...
asked by 13.07.2018 / 14:00
1
answer

How to make a single button turn on and off and on click send value in URL

In the code below each I have two forms one to send the value 1 and another to send 0 and both forms send this value via GET When I send the GET PUMP STATUS # 1 ::="motor": receives the PLC return STATUS PUMP # 1 :: = true STATUS PU...
asked by 12.07.2018 / 23:35
1
answer

Storing image (input file) in characters and restoring in file again (?)

This code gets an image by input file and "transforms" it into characters Is there a way to reverse the situation, with the characters obtained in the console.log form the image again (throwing the image in the% div secondImageView ?) T...
asked by 17.07.2018 / 18:06
1
answer

How to use async and await in NodeJs

I'm trying to learn how to use async await but, I'm missing something and need help. My method works as expected with Promise see: import express from 'express'; import conn from '../models/connection'; const c = conn; class ClientRoutes { ....
asked by 17.07.2018 / 21:37
2
answers

Change value select via ajax as another select with static data

I have this select, where the user should select it: <select asp-for="Configuracao.TipoEquipamento" class="form-control"> <option value="0">Catraca</option> <option value="1">Fechadura</option> </select>...
asked by 10.07.2018 / 13:11
1
answer

How to make website with multi languages? [duplicate]

I developed a site in just one language but now I wanted to get it in several languages to reach audiences from other countries, it's a site where I insert enough information in my backoffice that will be shown to my target audience. What I...
asked by 08.07.2018 / 21:35
1
answer

How do I put a countdown timer on more than one publication on the page?

Good morning! I have the following problem, I have the view below that works as a timeline, inside it I have some publications. I get to each of the publications and get the amount in minutes that are missing to expire / start. The problem is th...
asked by 27.07.2018 / 14:28
1
answer

How to create a .click () limiter in JS?

I'm trying to create a calendar in JS. First I made a <table> that will fill the <td> according to the days, leaving all available to click and select a certain day. The user selects a forward day and a return day (c...
asked by 27.07.2018 / 00:01
1
answer

Connection being refused

Following this tutorial of Vedovelli on node with restify and mysql, implemented on the server with pm2. Only after a few days the connection started to be refused You're showing this message: errno: 'ECONNREFUSED', code: 'ECNNREFUSE...
asked by 03.08.2018 / 13:14