Questions tagged as 'javascript'

2
answers

property map ()

I'm learning how to program in javaScript I was trying to do an exercise where I had to sort the numbers in an array and then delete the ones that are repeated, do the following (I'll leave it below to continue with the explanation), my question...
asked by 19.04.2018 / 06:47
1
answer

Change Javascript object image when an event occurs

I am designing a graphical interface for electrical circuits and I want to check the operation of a light bulb that I have defined as an object. The definition of the bulb object is as follows: /* Función para crear una bombilla */ joint....
asked by 19.04.2018 / 16:17
1
answer

How to remove an element added by the append method according to the selected option of a select multiple?

the problem is: I have a multiple select that lists records from a table, so when I select a select option it adds an input with the user ID inside a DIV, and when I deselect an option it continues adding a new input. How can I prevent...
asked by 21.04.2018 / 19:25
1
answer

Change the placeholder color of a text input using JavaScript or, better yet, CSS? [duplicate]

I want to change the color of the placeholder of this input. Is it possible? <input type="text" placeholder="Enter your input here">     
asked by 09.05.2018 / 06:01
2
answers

How valid the state of both select at the same time!

I have a problem validating the indexes of the selected options in a select since the event only runs in the select utlimo, since the selected index == 0, it is as if the for would not work the button must be activated only if both select are...
asked by 05.05.2018 / 23:46
3
answers

Call javascript functionality from html

I need to call the editProduct () function from a button in the html. What I did was add it to the onclick="editProduct ()" button. This is the javascript code: const API = (function() { /** * Obtiene una orden desde el backend...
asked by 01.05.2018 / 15:31
1
answer

functional code does not run on my telegram bot

The problem is that this code: const Jimp = require('Jimp'); var map = [["⬜","⬜","u","⬜","⬜","⬜"],["⬜","⬜","⬜","⬜","⬜","⬜"], ["⬜","⬜","⬜","⬜","⬜","⬜"],["⬜","⬜","⬜","⬜","⬜","⬜"], ["⬜","⬜","⬜","⬜","⬜","⬜"],["⬜","⬜","⬜","...
asked by 11.04.2018 / 10:10
1
answer

Problem with if () with variables that increase and change according to the database

I'm making a website for my mobile app, the truth is that I do not know much about Javascript (nothing really) and I have almost everything I need, the only thing that is giving me problems is this code if (), the which apparently does not recog...
asked by 03.04.2018 / 16:03
1
answer

How to read an xml saved in sql Database

I need to be able to read all the data in each row to put them in a bootstrap-table , does anyone have any ideas? I have this code saved in a field in my sqlserver database: <xml xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882' xml...
asked by 02.04.2018 / 17:33
2
answers

How do I make a variable of the same type of class in Javascript?

I want to make a simple list linked with javascript and for that, I need to make a variable of the same type of the class, in Java I did it like this: class Nodo{ public char datoNodo; public Nodo sgte; public Nodo(char dato){...
asked by 09.08.2018 / 23:07