Questions tagged as 'javascript'

0
answers

How do I change the input type="file" path and submit form with another image?

I need to upload multiple images that are inside my application. My form is this: <form id="uploadForm" enctype="multipart/form-data"> <div class="file-field input-field offset-s4"> <div cl...
asked by 23.05.2018 / 09:39
1
answer

How to break lines using template string (ES6)?

I have a request for the backend and its URL is quite large. this .$http .get('backoffice/usuarios/${this.id}/grupo/${this.grupo}/filial/${this.filial}/multinivel/${this.multinivel}') .then(({ data }) => { this.items = data }) }...
asked by 23.05.2018 / 17:25
1
answer

Get dynamically created element

I'm generating a A tag dynamically in a pure AJAX file, without Jquery. The code: if(xhr.status == 200){ console.log(xhr.responseText); let resposta = xhr.responseText; resposta = JSON.parse(resposta); let x = document.querySelector...
asked by 21.04.2018 / 15:05
0
answers

function from onclick in external url iframe

How to get the parameters of an onclick being the link in an external url iframe? on the same server does exactly what I need, already working with the help of a Stack (dvd) user. function looks like this: function funcao1(dom,se...
asked by 21.04.2018 / 16:25
0
answers

How to get data from a modal page?

I have a main page with a simple form: <div class="col-sm-6"> <label for="tipo">Tipo de sessão:</label> <select class="form-control" name="tipo"> <option value="1">opcao 1</option> <option val...
asked by 20.04.2018 / 22:51
1
answer

JavaScript Functions

You were asked to create a Form to get the value of A, B, and C to stop the calculations of 2nd degree equations and return the discriminant in a tag, but the function is returning NaN. Code below. <p>A: <input type = "tex...
asked by 17.04.2018 / 19:43
1
answer

Expand div and call other content asynchronously [closed]

I would like to know how I can create an event by clicking on a <div> which upon receiving the event it expands to a percentage of the screen. When I click on "Who we are", it expands with different CSS, texts, etc ... I believe i...
asked by 16.04.2018 / 02:21
0
answers

change img with one click [closed]

I'm developing a project but I need a slider that changes img only when it receives a "click". For example: I click on an img and it will move on to another and so on. Could any of you guys help me with this problem?     
asked by 14.04.2018 / 00:56
1
answer

Search / confirm button and clear field

I need the user to click on the SEARCH / CONFIRM button to open a new browser window by asking SELECT one of the categories that comes directly from the database , and selecting the same window closes and the value chosen goes to the field a...
asked by 09.04.2018 / 18:26
0
answers

How do I disable via Javascript that cookies load data into only one specific page

I have a registration page that has email and password, when the user clicks to save email and password in the login, the auto fill of the coockies already fill in the data of the cadastre. I can not clean the coockie and they have to work norma...
asked by 09.04.2018 / 22:22