Questions tagged as 'javascript'

2
answers

How to leave the Scroll of a smooth page?

How do I make the scroll bar on a page smooth? And if you can, how to customize it. Example: link     
asked by 03.05.2014 / 02:09
1
answer

Select multiple with dynamic operation

I have a select with 4 options. These 4 options are the number of options that will appear in a multiple select. WhatIwantisassoonastheuserselectsthemostfrequentwordquantityoption,javascriptalreadyfillsthesecondselectwiththenumberofwordsselec...
asked by 27.01.2015 / 00:54
2
answers

How to select an option in one select and load related data in another?

I would like to select an option of a <select> and fill the other <select> with related content. I will only be able to do this with the information stored in database database or how to do with array? How can I do t...
asked by 03.05.2014 / 02:21
1
answer

How to sort array of strings disregarding accents?

If I have an array like this: exemplo = ["Árvore", "Casa", "Computador", "É", "Poste", "Pássaro", "Índia", "Ar", "Ásia"] The exemplo.sort() considers the accentuation of the words to sort, putting the accented ones last: exemplo.so...
asked by 20.05.2014 / 23:45
1
answer

What are the optimal usage scenarios for Node.js?

The theme is broad, but I'll try to focus on what I really need to understand. Lately I've been studying Node.js, and I've been amazed at the tool, in the comparisons I've seen, it seems to be a mature and effective tool. In many places, I s...
asked by 18.04.2016 / 15:40
2
answers

Count of black pixels that were traced in image on the web

I want the user to trace a line in a biometric image and to make an automatic count of "black parts" of the digital that this line has crossed. I have no idea which tool to use and where to start ... Does anyone have a path? It's for...
asked by 08.06.2016 / 21:10
1
answer

How does the JavaScript garbage collector work?

Simple variables Correct me if I'm wrong, but in Java the garbage collector deletes objects that are no longer referenced: Cliente cliente = new Cliente(); cliente = null; // o coletor de lixo cuidará disso The same goes for JavaScript?...
asked by 18.09.2014 / 13:36
3
answers

How to perform unit tests on nodejs

I would like to do unit tests on Node.js , I am using grunt-jasmine , but it does not recognize the variable exports , module and nor required . Is there a way to solve this or does someone suggest a testing framewor...
asked by 11.12.2013 / 19:28
1
answer

When to use module.exports or exports in Node.js?

I'm starting my study with Node and I came across the two ways to export something so that it is available with require , I would like to know what is the best way and why. Thank you     
asked by 20.03.2015 / 04:02
3
answers

Get MAC Address from the application's client machine

I would like to know the best way to get the client MAC Address from my Asp.Net Web Forms application. Since it's low-level information, I do not think it's as simple as it sounds.     
asked by 18.02.2014 / 20:16