Questions tagged as 'javascript'

1
answer

Node, server send information to page (bank password control, lab ...)

Good evening! I do not know if it is possible to implement the following situation: I have a html page that is a monitor (has the last number called), on the second page html, the user can click to request the next number. I can even exchange...
asked by 04.11.2018 / 06:04
2
answers

Create array inside the JSON object

I am creating an array in JSON, and would like to know how to create another array inside the object. var objeto; objeto = { "item" : [ { "id" : delDiv, "nome" : nomeItem.value, "cod" : codItem.value }...
asked by 26.09.2018 / 15:21
1
answer

Calling a servlet in a popup

Good morning, guys ... How can I execute a servlet by opening it in a popup and passing 1 parameter? My code looks like this: - In the page that calls <form name="frmcadentidade" method="get" action="DetalheEntidade"> <input typ...
asked by 27.09.2018 / 15:22
1
answer

How to change the Datepicker format dynamically?

I would like to know if there is any way to change the format of the datepicker dynamically using radio buttons, but the way I'm trying is not working ... HTML <input id="periodo" name="periodo" type="text" placeholder="Período"> <...
asked by 26.09.2018 / 15:18
1
answer

How to delete full Html content?

I'm doing a chat using PHP, JavaScript, Ajax and HTML. I know this is not the best option, but I chose to create a log.html html file that stores all messages and is uploaded by my index.php PHP file. All messages are sent to the l...
asked by 27.09.2018 / 16:11
1
answer

How to do a dropdown autocomplete field in Loop

As I do not have much knowledge of javascript I need a help in this my problem here ... In this form and precise that when choosing an item in the dropdown it fills the field next to the value contained in its value <script src="https:/...
asked by 24.09.2018 / 20:19
1
answer

Dynamic field mask for phone in Javascript

I know that it has masks in jquery, such as jQuery Masked Input, however I am doing maintenance on a system that was developed by another colleague and unfortunately is giving conflicts in the jquery that he implemented: <script src="assets...
asked by 25.09.2018 / 18:27
1
answer

Get element by id add two paragraphs

I want to add the two paragraphs with JavaScript (tag or class), but the result is always NaN . function calcular() { const num1 = document.getElementsByClassName("n1").value; const num2 = document.getElementsByClassName("n...
asked by 25.09.2018 / 01:08
3
answers

Block enter if textarea is empty

I am trying to check if a textarea has valid text. Checking the space was easy, but enter do not know how to verify. enviar() { var num = 13; // 13 é o cód ascii do enter if (this.textoEmEdicao == '' || this.textoEmEdicao...
asked by 25.09.2018 / 18:37
2
answers

Compare objects with array of objects

I will try to be practical. For example, I have the following objects: let a = { 'before': 'small', 'after': 'large', 'type': 'size' } let b = [ { 'before': 'small', 'after': 'large', 'type': 'size' }, { 'before':...
asked by 25.09.2018 / 17:08