Home » JavaScript (page 20)

JavaScript

jQuery keypress Example

The aim of this example is to show you how to capture keyboard keys events, specifically when a key is pressed. In jQuery, there is a method for that, .keypress(). The keypress() method triggers the keypress event, or attaches a function to run when a keypress event occurs. In other words, it binds an event handler to the “keypress” JavaScript ...

Read More »

jQuery UI Accordion Example

The aim of this example is to go through jQuery UI Accordion. The .accordion(options) method declares that an HTML element and its contents should be treated and managed as accordion menus. The options parameter is an object that specifies the appearance and behavior of the menu involved. Accordions are more and more finding their way into websites as navigation through ...

Read More »

jQuery Trigger Example

The aim of this example is to introduce and see cases of .trigger() method of jQuery. The trigger() method triggers the specified event and the default behavior of an event (like form submission) for the selected elements. This method is similar to the triggerHandler() method, except that triggerHandler() does not trigger the default behavior of the event. Several jQuery plugins ...

Read More »

jQuery FadeIn Example

The aim of this example is to introduce and give examples on the usage of .fadeIn() method of jQuery. Basically, the fadeIn() method gradually changes the opacity, for selected elements, from hidden to visible. Hidden elements will not be displayed at all (no longer affects the layout of the page). This method is often used alongside with .fadeOut() method which ...

Read More »

Promises in AngularJS. Part I. Basics.

There are many blog posts about Promises in general and Promises in AngularJS in particular. Promises are a part of the ES6 (EcmaScript 6) specification, so it is worth to learn them. In this blog post, I will try to summarize the most important info about Promises in a simple and clear way. The necessary code snippets will be provided ...

Read More »

Asynchronous Google Chart Data With jQuery in Grails

Google Charts is an awesome platform to create great-looking interactive charts, from simple scatter plots to timelines or treemaps.         I needed a way to create the required data for a chart on the server-side, instead of in-lining it in the JavaScript itself — as seen in many of the examples. Why asynchronously? Although in the example below we’re ...

Read More »

Node.js: Command line programming

This article is part of our Academy Course titled Building web apps with Node.js. In this course, you will get introduced to Node.js. You will learn how to install, configure and run the server and how to load various modules. Additionally, you will build a sample application from scratch and also get your hands dirty with Node.js command line programming. ...

Read More »

Node.js: Express tutorial

This article is part of our Academy Course titled Building web apps with Node.js. In this course, you will get introduced to Node.js. You will learn how to install, configure and run the server and how to load various modules. Additionally, you will build a sample application from scratch and also get your hands dirty with Node.js command line programming. ...

Read More »

Node.js: Full application example

This article is part of our Academy Course titled Building web apps with Node.js. In this course, you will get introduced to Node.js. You will learn how to install, configure and run the server and how to load various modules. Additionally, you will build a sample application from scratch and also get your hands dirty with Node.js command line programming. ...

Read More »

Want to take your WEB dev skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • PHP Programming Cookbook
  • jQuery Programming Cookbook
  • Bootstrap Programming Cookbook
  • Building WEB Apps with Node.js
  • CSS Programming Cookbook
  • HTML5 Programming Cookbook
  • AngularJS Programming Cookbook