Questions tagged as 'javascript'

2
answers

Concatenating Javascript Object

I have the following javascript array: for(var k in lista) { for(var x in lista[k]){ var donutData = [ {label: x, data: lista[k][x], color: "#3c8dbc"} ]; }...
asked by 06.06.2016 / 22:23
2
answers

Access variable / parameter of a function within another function

I have the following function: function criarDataset(field, constraint, sorFields) { totalTarefasAtrasadas = buscarTarefasAtrasadas(); function buscarTarefasAtrasadas() { usuario = constraints[0].finalValue; return...
asked by 03.06.2016 / 19:34
2
answers

How to increment from 0 to 10 within a setInterval in JavaScript

setInterval(function() { var x = 0; x++; console.log(x);}, 1000); }     
asked by 13.04.2016 / 06:35
2
answers

global variable angularjs

The question is simple, before the function I declare splited and within the function change splited to the value returned in response , now, after the function when I give console.log returns empty. Why? var splited...
asked by 23.03.2016 / 18:00
1
answer

How to overlay floating div on other elements of the web page?

I'm creating a new bookmarklet plugin that will be applied to any Youtube , where I have to add a div floating in body , thus doing appendChild in . However, a failure is occurring, this floating% is left behind Player and...
asked by 26.02.2017 / 15:44
1
answer

Line break within a Boostrap Popover

How to make line breaks within a bootstrap popover Example echo"<a href=\"#\" data-toggle='popover' data-title='Popover on Left' data-content='$data <br> $data' data-placement='left'> <span class=\"label label-success\">...
asked by 09.02.2017 / 02:50
1
answer

Trigger Onchange in select - javascript

Hello, I have a project, and I need to select other items in a select, but it seems very simple, but I was surprised by the difficulty I'm having in doing it. I have tested so far: Selecione um carro da lista<br> <select id="mySelect...
asked by 16.11.2015 / 23:31
2
answers

Doubt JS with input type file

Good evening, I need some help on the input part, I have a <input type="file" id="filesend" name="file" multiple/> How do I make a script that automatically detects when the user places a file in the input and sends $_POST['f...
asked by 02.12.2015 / 00:56
1
answer

Display / Hide "Terms of Use" by clicking checkbox

How do I checkmark a site's content when I check it? For example, I want to make a terms of use system, whereby clicking on "I accept the terms" will release the button to proceed with the content. I made the following form, I created a co...
asked by 14.11.2015 / 22:36
3
answers

Catching callbacks from an ajax

For example: var teste = $.ajax({...}).done( function() { alert('Callback Done!') } ); Where does this function defined in done () go? I already looked in the integer object using the Chome console, but I did not find where these callbacks...
asked by 15.11.2015 / 01:29