Questions tagged as 'javascript'

2
answers

How to make a text box appear when selecting a select option

Hello, I'm developing a website, and I wanted it when the user selected the OTHER option, open a text box for him to type, but I can not, can anyone help? function mostraCampo(this) { var select = document.getElementById('instituição')...
asked by 06.09.2017 / 01:10
0
answers

Send image via API to AMAZON AWS

I need to submit an image via jquery or javascript to an Amazon hosted API. I can send it by Postman, it shows me this code for sending: var form = new FormData(); form.append("file", "http://www.site.com.br/2017-09-06-11-40-43.jpg"); var set...
asked by 06.09.2017 / 17:30
0
answers

How to enable link according to Slide navigation

I have a slide made with Bootstrap 3 and I need to move the slide images, the menu is green and with the outline to identify the navigation, showing where the person is. Today when I move the mouse on top happens the effect of change due to css...
asked by 21.08.2017 / 20:11
1
answer

Convert format like xml to json with javascript

I am using the following code to read a file similar to an XML, but I need this file to be converted to a JSON, can anyone give me this help? Here is the code for my index.html <html> <head> <script> var op...
asked by 21.08.2017 / 21:21
0
answers

Why (0.0015 * 3) == 0.0045 does not return true? [duplicate]

Hello, Why does (0.0015 * 3) == 0.0045 in javascript compare not true? Ex: var valor1 = 0.0015 * 3; var valor2 = 0.0045; if(valor1 == valor2) { console.log('Igual'); } else { console.log('Diferente'); }...
asked by 17.08.2017 / 21:11
0
answers

Update DIV with popover attribute

I have a function where I get charged every 10s. When checking that there is a new message updates the field informing the amount of messages. smg(); function smg() { setTimeout(smg, 10000); // 10 seg $.getJSON(...
asked by 18.08.2017 / 21:26
0
answers

Generate Random Number without repeating Javascript [duplicate]

So, I want to generate this protocol, with random numbers and no repetition. It is functional, meaning the code does not repeat. However, when clicking generate protocol, on the click, it was to generate, until you find a random number t...
asked by 14.08.2017 / 19:41
0
answers

Follow UTM to the next page!

Hello I have a code that when the button is clicked the URL parameter of the current page goes to the next page ... This would be the current URL: google.com?utm_source=1 When the button is clicked it should follow and look something...
asked by 15.08.2017 / 15:25
0
answers

Error initializing DataTable with jquery

Hello, I have a DataTable that will be powered by JavaScript Source (data source) when I open the screen, I want it to start "empty" with no data. For some reason, it already starts automatically when loading jquery.datatable.js, and I need t...
asked by 14.08.2017 / 20:05
1
answer

Jquery Chosen Plugin does not filter search on PHP site

I'm using the plugin Jquery chosen does not perform filtering in php system. Code to scan bank and get list of data: <div class="grupo"> <!-- class="borda select2_single form-control comboauto" --> <select name="id_projet...
asked by 14.08.2017 / 19:40