Questions tagged as 'javascript'

2
answers

Methods onunload and onbeforeunload do not work

Based on this response I would like that when the user closes (or update) received an alert saying Tchau , but only when I enter the page does it tell me Olá , when I update or close the tab, it does not say Tchau . <...
asked by 28.12.2017 / 01:42
2
answers

Include php file with java

I'm doing a token support, like an api with an access token. I just can not get the information back when it's in another domain. HTML <div class="modal modal-fixed-footer show"> <div class="modal-content"> <h4&...
asked by 06.01.2018 / 02:37
2
answers

Repeat selected data in a select in a text input

How do I repeat the selected values in a select in a input[type="text"] considering my HTML below using JavaScript? <select name="destino_in" class="form-control" required> <option value="Vilamar">Vilamar</option...
asked by 10.01.2018 / 18:00
2
answers

Asp.Net MVC - Select item from a DropDownList reflect the same selection in another DropDownList that contains the same selection items

I have 02 DropDownList fields that have the same items to be selected, ie: Camera 1 Camera 2 Camera 3 Camera 4 Camera 5 Camera 6 Summarizing in large part the registrations that will be carried out, selecting a DropDownList item...
asked by 28.04.2018 / 04:19
2
answers

List and add selected items

I need to list the value in (R $) of the inputs and select the html, as if it were a shopping cart, however I need this list and total value to be presented in real time to the user to be sent the list by and -mail ... Could anyone help me?...
asked by 26.04.2018 / 15:50
1
answer

How to delete tbody from a table created via Javascript

I create a table dynamically from the result of a query in the database. But I would like to have a control to eliminate the <tbody> of it. I can do this using the command: var body = $("#tbSemana").find('tbody').remov...
asked by 13.06.2018 / 18:42
2
answers

How to remove a textarea element

I have this textarea: <textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 40px; border: 1px solid #c1c1c1; margin: 10px 25px; padding: 0px; resize: none; display: none;...
asked by 02.06.2018 / 18:37
2
answers

JavaScript problems [closed]

Hi, I'm having problems with my javascript. I have two functions and when I add one more it crashes everything. The two functions are these: function calculaResultado(x){ console.log(x); a = document.getElementById('av...
asked by 04.06.2018 / 11:55
1
answer

Onclick JavaScript Event

I'm testing Onclick on JS and I'm strange about a business, it works only when I paste it into the document.querySelector('.a').onclick = teste2(); console, or the first time I run / open the page. If I click on the element I'm catching,...
asked by 03.06.2018 / 05:22
1
answer

How is a NodeJS application distributed to client?

I'm taking a look at NodeJS and I had a question about its distribution. Assuming I have a company, and I use Express / NodeJS to create a simple REST service for my main application. To install this server on a client, would I need to instal...
asked by 09.06.2018 / 19:58