Questions tagged as 'javascript'

1
answer

What is the function of app.listen in Express?

Recently I started my studies in NodeJS and Express. From what I've been reading, app.listen, basically, is what makes the server listen for requests coming from the defined port. But I noticed that when running an application in Express it r...
asked by 14.08.2017 / 19:52
2
answers

trigger function after form validation

I have a form with validation, and I need to insert after validating this form a waiting hourglass (as if you were loading the page). I would like to know how to join these two functions, and after validating the form, it triggers the other:...
asked by 27.07.2017 / 20:39
1
answer

Select md-option with ng-click

I have a page listing some job openings. Below these vacancies I have a form and in this form there is an option field to select the vacancy of interest. If the user clicks the vacancy of interest above, automatically in the form this option mus...
asked by 08.06.2017 / 19:22
2
answers

Query return in Javascript variable

I am making a code in node.js that accesses SQL Server database. I created a variable that stores the result of a query, the problem is that I can not access this variable outside the connection method to the database. Here is the code: var le...
asked by 09.06.2017 / 20:57
1
answer

Library for VueJS graphics creation?

I need to do graphing, and I'm using the VueJS framework along with Quasar. I wonder if anyone knows or knows any library so I can generate these graphs; I've seen some, but the documentation is in Chinese, which makes it very difficult. Thanks...
asked by 03.08.2017 / 21:17
1
answer

input tag and javascript

Hello, My question is the following HTML <input id="cakeDonuts" type="number" name="numCake" min="0" value="" onchange="updateOrder()"> <input id="glazedDonuts" type="number" name="numGlazed" min="0" value="" onchange="updateO...
asked by 12.06.2017 / 22:42
1
answer

How to make a function run only in IE 10 and 11?

I want a code snippet (a specific function) to run only when the browser is IE 10 and 11, when it is Firefox or Chrome for example, I want this function to be ignored. Is this possible?     
asked by 29.07.2017 / 16:23
2
answers

Loading over the map

I have the following code drawn 2 polygons on the map. See: function initialize() { // Define the LatLng coordinates for the polygon's path. var bounds = new google.maps.LatLngBounds(); var i; var polygonCoords = [ new...
asked by 04.08.2017 / 15:18
1
answer

script import in the wrong order, function not defined

I have a component vue ( Map.vue ): <template> ... </template> <script> import '../../assets/js/map.js' export default { name: 'home', data () { return { init_data: {}, } },...
asked by 29.06.2017 / 13:50
1
answer

Select filter stopped working

Hello, I need a help, I have a select filter that until yesterday was working, someone moved and stopped working, as I do not understand much of jquery, I decided to ask here. Note: The jquery file is still called normally. When the use...
asked by 28.04.2017 / 20:53