Quantcast
Channel: HowToDoInJava
Browsing latest articles
Browse All 41 View Live

JavaScript Logs – Mask Sensitive Information in JSON

Masking sensitive information is very practical need of applications which deal with sensitive customer data. For example, banking applications. When these applications run inside organization...

View Article



Implement MVC and PubSub in JavaScript

We know what is MVC? MVC stands for Model-View-Controller. In simple words, MVC is a design technique in which application components are divided into 3 groups so that they can be developed separately...

View Article

JavaScript: Correct way to define global variables

We know that what global variables or constants are, these are fields which are accessible application wide. In java, it is done usually done using defining “public static” fields. Here by adding final...

View Article

jQuery – Difference between Keypress and Keydown Events

jQuery supports 3 types of keyboard events and which we are : keyup(): Event fired when a key is released on the keyboard. keydown(): Event fired when a key is pressed on the keyboard. keypress:()...

View Article

jQuery: Detect if ENTER key is pressed

This is common sense that if you have to detect a key pressed in browser then you must check in keycode (ascii) value. Simple and easy. The problem arises when you don’t know how to correctly use this...

View Article


jQuery – Detect Cut, Copy or Paste Events

If you have worked on projects involved dynamic UI having client side input validations, then you can recall that it is very common practice among QA/testers that they try to copy lots of garbage text...

View Article

jQuery Deep Cloning Example

jQuery deep cloning means that changing the original or cloned object independently does not make impact on other object. In other words, both objects (original as well as cloned) are completely...

View Article

JavaScript – Equality (==) vs. Identity (===) Operators

If you have worked on javascript then you must have noticed these two operators to compare values. Many developers do not understand the correct version they use in specific scenarios. The correct...

View Article


JavaScript DOM Objects vs. jQuery Objects

In one sentence, DOM objects are the objects that the web browser is using to render elements on the web page whereas jQuery objects are basically wrapper objects around a set of DOM elements. If you...

View Article


jQuery Selectors – Complete List

jQuery selectors are perhaps most important aspect of the jQuery library. These selectors use CSS like syntax to allow developers to easily select any set of page elements and perform operations on...

View Article

jQuery – All Selector (“*”) – Universal Selector

jQuery all ("*") selector selects all elements in the document, including html, head and body. Syntax : $("*") The all selector is extremely slow so use carefully. If your browser has an...

View Article

Complete jQuery Ajax ($.ajax) Tutorial

We have already learn about Ajax (Asynchronous JavaScript and XML) in this Ajax Tutorial. We learned the basic but important concepts about how ajax works and it’s building blocks. Let’s move the...

View Article

JavaScript Variable Scope Rules You Must Know

With JavaScript, scope is little tricky feature. They are very simple looking, but can go wrong if you are not aware of how exactly javascript variables are scoped. The post JavaScript Variable Scope...

View Article


Jasmine – JavaScript Unit Testing Tutorial with Examples

Learn Jasmine framework in detail including suite, spec, setup, teardown, describe blocks, matchers and spy - with examples. The post Jasmine – JavaScript Unit Testing Tutorial with Examples appeared...

View Article
Browsing latest articles
Browse All 41 View Live




Latest Images