Questions tagged as 'javascript'

2
answers

How to get the identity of an object in JavaScript?

Several languages have a means of obtaining the "identity" of an object, i.e. a [integer] number that is unique to each object, such that different objects have different identities. Examples: Java ( System.identityHashCode    As f...
asked by 15.12.2013 / 11:35
2
answers

How to show only "x" characters in a div?

Hello, I'm developing a system where I will be publishing, but I would like that, in each publication, it shows "x" characters, and going from that value, it shows a button labeled "Show more", just like Facebook . If anyone knows how to do t...
asked by 01.02.2016 / 00:59
1
answer

The concept of High Order Functions in Javascript

I'm reading Eloquent Javascript to get a Javascript base. I was understanding well, since the fundamental does not change in relation to other languages, like data types (int, string, bool, objects, arrays). But I came to the Abstraction sec...
asked by 01.09.2016 / 20:25
3
answers

Hide image generated by Javascript

I'm using the sharethis plugin to share content on social networks. For this I am making the following call: <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=YOUR_PUBLISHER_ID"></script>Th...
asked by 27.02.2014 / 00:04
1
answer

JavaScript - Difference between 'this' and 'self'

I would like to understand and help the community with information. What's the difference between using this and self in JavaScript? Basically: What? Why use? How to use?     
asked by 03.05.2017 / 01:58
3
answers

How do I make the Caps Lock key warning activated?

How do I make a warning when the Caps Lock key is enabled in the password field? At first I would like solutions in pure JavaScript, but using jQuery and related will be accepted.     
asked by 10.05.2017 / 19:29
2
answers

Customize comparison between javascript objects

How do I determine what value javascript should use for logical operations on objects? I'm creating a competency object that needs the following features: Encapsulates the logic of creating a competency: month / year in MM / YYYY format...
asked by 28.11.2014 / 17:34
2
answers

How to make an effect by adding a new item to a list

I have a list that updates from time to time and I would like to add a similar effect to this site: Site This is the list that is in the middle of the site. Where, when a new item enters the list, the rest of the items go down making an...
asked by 23.03.2014 / 01:20
1
answer

What is the best practice for a "back page" link?

Would you like to know the best practice for that default button / link in the applications? Today I use href="javascript:history.back();" but there are some considerations that over time I came across, are 3 doubts : INCOMPATIBILIT...
asked by 25.10.2015 / 14:35
2
answers

How to disable mouse scroll button?

I would like to know how to disable the scroll central button ? I do not want to take the scroll just the scroll button of the mouse that has a right-hand side up and down when I click it, I want disable it.     
asked by 17.04.2015 / 21:15