Questions tagged as 'javascript'

1
answer

JavaScript - How to improve this code?

As there is no Code Review Stack Exchange in English and I ask for help in one I'm working on: suggestions and criticisms about a chat script that I'm developing in JavaScript to streamline an existing one in PHP. This idea has become...
asked by 31.08.2015 / 23:13
1
answer

How to run different Node.js sites on the same server?

I have a Linux server and on this server I have several hosted sites, each with its own folder and files. I want to start using Node.js to create the APIs for each site. What is the best way to do this? A process and port for each site or a s...
asked by 12.11.2016 / 14:36
1
answer

Delete values from the list of options in html

I have one page and I display 4 options for each of the 4 alternatives. Each option is a value from 1 to 4. I would like every time the user selects a value, this value would be excluded from the options list of the other alternatives, forcin...
asked by 19.10.2016 / 06:35
1
answer

Bug when reorder list of React components

I have a component that loads a list of components <ComponenteReordenavel> that is rearranged according to the user's taste. The bug happens when I modify the style of this component and reorder again, the style always...
asked by 08.12.2016 / 18:54
1
answer

How to make a list of categories with a task counter fulfilled and not fulfilled?

Good evening, I'm like a doubt, I'm trying to do a dynamic task counter, that completed tasks should be presented on another page. I have the following HTML of tasks fulfilled: <!doctype html> <html ng-app="todoApp"> <head&...
asked by 21.12.2016 / 02:40
4
answers

Generate angular pdf using javascript

I'm trying to generate a pdf in my application made in angular and I have the following code in controller.js: function gerarPdf(){ restService.relatorio.save({ id: controller.contrato.id, folha: controller.recei...
asked by 22.12.2016 / 12:10
1
answer

How to change IMG (logo) from the menu (header) when scrolling page?

I have this menu that has an image: logo.png, as shown in the code below <header class="header"> <div class="container"> <a href="index.html" class="grid-4"> <img src="img/logo.png"> &l...
asked by 10.01.2017 / 01:09
1
answer

NodeJS because so many files

Good afternoon guys, I'm just getting started with NodeJS a project in VUEJS, and I saw that when I give the command NPM INSTALL It creates about 20,000 files, my application comes with 100mb with almost no dependency ... What is the...
asked by 18.09.2017 / 22:09
2
answers

Addition / multiplication of dynamic inputs and total in R $

Good afternoon, I need a great help, I'm stuck in a problem that apparently must be very easy! but I can not evolve. I have a code with the following fields: Inmyscriptthereare5groupsofapparentinputsandabuttontoaddmoreinputs(dynamicinputs),m...
asked by 31.08.2017 / 22:29
2
answers

Insert html element "div" with javascript

How can I insert a div according to your class or id? Exemplification <div id="main"> </div> <div id="about"> </div> <div id="more"> </div> They are stamped in a single file! And then with a javascript...
asked by 05.10.2016 / 04:15