JavaScript

JavaScript Singleton Design Pattern

The Singleton pattern restricts an instantiation of an object to a single instance thus reducing its memory allocation and allowing a "lazy loading" on an as-needed basis. The advantages of that pattern are the reduced memory occupation, single point of access and a postponed initialization which prevents instantiation until it is required. As a disadvantage one may point out that object is hardly ever reset once instantiated and sometimes there might be hidden dependencies.

Tags: 

JavaScript Inheritance

One of the big deceptions in JavaScript when coming from other object-oriented languages is that is has classes. Therefore a developer might be puzzled to see a code like this:

Tags: 

JavaScript String Extension Methods

It happens sometimes when writing code and cope with an object that you need a functionality namely a method which the object doesn't expose. And as you do not have ownership over that object as it is provided by the language or framework, it appears the need somehow to extend that object to have the desired behavior. In that case JavaScript is a language which is powerful and flexible enough to easily solve the problem. It provides a way to generate extension methods fast.

JavaScript CSV Export with Unicode Symbols

There are often problems exporting unicode symbols to CSV file format. Developers tend to forget to add the UTF-8 BOM at the start of text and text is displayed incorrectly when opened in Excel application. Therefore I add a small example of such an export which might be useful for developers who have come to that problem too.

Export to PDF in jQuery Using Shield UI

Portable Document Format (PDF) is the most popular file format for presenting documents on all devices, operating systems and software applications. Each PDF file contains a fixed-layout document that may include text, fonts, graphics and other information.

Responsive Bootstrap Dashboard

Today we look at creating a Bootstrap Dashboard application. This layout is increasingly popular lately. It provides both a wealth of data for the user to consider and a responsive layout, which covers a wide variety of devices.

For the sample used in this blog, I have used the ShieldUI web development framework, which offers all of the widgets utilized.
The complete sample is available for download here.

ShieldUI jQuery Grid Editing Support

Our development team recently added a new and highly anticipated feature to our jQuery Grid component - editing. This enhancement impacts both the Grid and the Data-source components, which both received major updates, to facilitate the functionality.

jQuery Bubble Chart

Buuble chart series are similar to scatter charts. They resemble individual, disconnected points of data. Unlike scatter points, bubbles should not be used in "cluster" scenarios.

Getting Started
In order to take advantage of the functionality offered by the chart component, you will need to:

jQuery Scatter Chart

Scatter charts render individual, disconnected points. Unlike line and area charts, scatter points do not convey trends well, but are used for individual data entries.

Getting Started

In order to take advantage of the functionality offered by the chart component, you will need to:

1. Include references to all required scripts.
2. Add the control declaration along with the desired properties.

jQuery Pie Chart

Pie charts are similar to bar charts in the aspect that pie charts tend to visualize individual, disconnected points, rather than trends, such as lines or area charts. With a pie chart, the focus is on showing a part-of-a-whole relationship.

Getting Started

In order to take advantage of the functionality offered by the chart component, you will need to:

Pages

Subscribe to RSS - JavaScript