Questions tagged as 'javascript'

1
answer

Scroll beginning at the end with iframe instead of div

I would like a function of this type, except in iframe : function updateScroll() { var element = document.getElementById("oTeuId"); element.scrollTop = element.scrollHeight; } // primeira chamada ao...
asked by 10.08.2017 / 03:51
1
answer

Change state color on interactive map

I'm using this map on a site link I would like to leave states where we have unity with a different color, colleagues know how? There is this section where the color of all the states is: var options = { region: 'BR', resoluti...
asked by 09.08.2017 / 22:28
1
answer

How to print php variables within a JS?

What I wanted to do, was to put inside a JS calendar the data I pull from B.D through PHP: Events in this format: events: [{ title: 'All Day Event', start: new Date(y, m, 1), backgroundColor: "#f56954", //red borderColor: "#f5...
asked by 04.08.2017 / 14:26
1
answer

Upload Json file with Ajax

How do I load a Json file into my html. The console does not show any errors, but no field is populated with the data from the Json file.               <h3 class="center">Tela de alunos</h3> <div class="container"> <...
asked by 09.08.2017 / 22:12
1
answer

Structure React project

Galera, I created a react-native project and I want to structure it with folders, for example create the screens folder to create the components. The beginner's doubt. Whenever I run the project it is redirected to index.android.js In t...
asked by 09.08.2017 / 20:50
0
answers

ChartJS only starts the chart when I change the page zoom

People, for some reason my graph made in chartJS only shows the data when I press ctrl + shift + i to open the console or when I change the page zoom, which is not very interesting for a user. I'm testing on my notebook. Here is the code:...
asked by 05.08.2017 / 02:55
0
answers

Capture values followed by a textarea in the same function

I'm developing a console with HTML5 + Vue to streamline some simple commands. The inserted command comes via a textarea with v-model="cmd" v-on:keyup.enter="consoleMode()" . I'm using else else, since I only need 4 functions. conso...
asked by 03.08.2017 / 20:49
1
answer

javascript gets variable in form php in the wrong way. [closed]

I have this script and this form populated in php, I would like to use the delete button to send the name of the training to be deleted. The problem is that javascript always gets the value (nometreino) of the first row table, even on other butt...
asked by 07.08.2017 / 08:44
0
answers

How to get the return of a sql query using nodejs [closed]

Good afternoon, I'm venturing into nodejs and I'm having some fun and I'm having a hard time getting the return of an sql query. I found some examples on the internet and they even work (the result stays on the console), and it's not what I expe...
asked by 06.08.2017 / 21:52
0
answers

Display another value in the tooltip of a D3 chart

I was doing a preview and needed to display a different value on the tooltip that it displays. The view is entirely based on this template: link , and displays the values for each bar. I wanted to check if there is a possibility to displ...
asked by 07.08.2017 / 16:19