Questions tagged as 'javascript'

1
answer

Do individual requests influence the speed of the site in general?

Good morning! A client is on the site, it runs in the console a code like this: setInterval(function(){ console.log('Teste'); }, 1); Does his code, running on his browser, in any way damage the speed of the website in general? Server...
asked by 28.06.2018 / 13:23
2
answers

problems with color change through javascript

I have a javascript problem where every time I change the color of an element. Follow the code below: <script type="text/javascript"> var timer = setInterval(modCor, 5000); var cor = 0; function modCor (){...
asked by 13.06.2018 / 00:44
1
answer

Substitution of values

I'm getting an array in the variable "myObj" ([00, 12, 45, 34, 23, 34, 34, 34, 05, 42, 21, 11, 31]). And I needed to put this value in the series, ie replace the array that is there hardcoded. Type: series = [myObj, ...] var xmlhttp = new...
asked by 07.06.2018 / 12:11
1
answer

How to make dynamic chart based on database records

My system has a page with a table that shows each bank record with a button to open a modal. Iwouldlikethisgraphtohaveachartthatcomparesthenumberofplannedactionswiththenumberofactionsperformedmonthbymonth.ButsinceIonlyhaveabuttonthatrepeatsa...
asked by 05.06.2018 / 19:32
2
answers

Keep active script click

I was able to execute a script where when mouseover (hover) on a certain object, it performs the desired action, but I would like to execute the action with a click and I am not able to do either with Javascript or JQuery .. . <script>...
asked by 04.06.2018 / 22:34
1
answer

Autoload of models in Mongoose

I have an API in NodeJS where I created a file to be my datasource, in this file I make the autoload of my models reading the files of my app and for each one I import into the sequelize. The code is this: import Sequelize from 'sequelize'; im...
asked by 04.06.2018 / 21:33
1
answer

Angular ReactiveForms

Hello, I'm trying to create a reusable form component using ReactiveForms. Like when I want to use a form, I'll just pass an array of my inputs from that form. But I doubt if this is really possible. In my case I caught here: export cla...
asked by 03.06.2018 / 01:59
1
answer

Get span information inside div

I have the following structure in HTML: <div class="ui fluid search dropdown procuraAluno selection multiple active visible"> <select name="ci_direcionado" id="cisOptions" multiple=""> <option value=""></option&g...
asked by 31.05.2018 / 20:12
1
answer

Error when using Javascript window.history.back () [duplicate]

Hello, I am having trouble using the window.history.back () method in Javascript, it has the functionality to return to the previous page of my application, the problem is that I have a POST-type search on this page and when I try to return...
asked by 01.06.2018 / 19:53
2
answers

How to overlay two sets of div's using CSS?

Hello everyone! I'm running a small project, it's a memory game. My idea was to create a div (which is the letter) and within that div put two other divs (which are the front and back of the letter). But when I stylize the front and back I can n...
asked by 01.06.2018 / 02:52