Author: roymj88

Fonts on the web are essentially vector based graphics. That’s why you can display them at 12px or 120px and they remain crisp and relatively sharp-edged. Vector means that their shape is determined by points and mathematics to describe the shape, rather than actual pixel data. Because they are vector, it would make sense if…

Read More How to Add Stroke to a Web Text

Note : The following post is quite old and google has removed reference links provided. What it is A Google Talk chatback badge allows others to chat with you even if they haven’t signed up for Google Talk on their Google Account or if they don’t have a Google Account. You can put the badge…

Read More Google Badge (How to Create a google chat in your own website. Like gtalk)

Prototype-based programming is a style of object-oriented programming in which classes are not present, and behavior reuse (known as inheritance in class-based languages) is accomplished through a process of decorating existing objects which serve as prototypes. This model is also known as class-less, prototype-oriented, or instance-based programming. When you define a function within JavaScript, it…

Read More Concept of Prototype in Javascript

Closures Are Not Magic This page explains closures so that a programmer can understand them — using working JavaScript code. It is not for gurus or functional programmers. Closures are not hard to understand once the core concept is grokked. However, they are impossible to understand by reading any academic papers or academically oriented information…

Read More JavaScript Closures

If you are totally new to AJAX (which stands for stands for Asynchronous Javascript And XML), the AJAX entry on wikipedia is a good starting point: Like DHTML and LAMP, AJAX is not a technology in itself, but a group of technologies. AJAX uses a combination of: HTML and CSS for marking up and styling…

Read More Ajax

Event bubbling and capturing are two ways of event propagation in HTML DOM. In bubbling the event is first captured and handled by the inner most element and then propagated to outer elements. In capturing the event is first captured by the outer most element and propagated to the inner most element. During the time…

Read More Event Bubbling and Capturing

The following source code can be used to plot multiple points on a map using google maps api. Javascript : HTML content : Remember to include the following script at the head section : If you have followed the above steps then you will get something like the image below : Cheers.

Read More How to plot multiple points on a map using google maps

Backbone routers are used for routing your applications URL’s when using hash tags(#). In the traditional MVC sense they don’t necessarily fit the semantics. Though a Backbone “router” is still very useful for any application/feature that needs URL routing/history capabilities. Defined routers should always contain at least one route and a function to map the…

Read More What are routers in Backbone.js?

Recently i had a requirement where i needed to create page transition. While using jquerymobile, the transitions really took a toll on some browsers when added with contents. Browser support was a major hurdle. Then i came across a jquery powered solution for the same and its really cool. Thought of sharing it here :…

Read More How to Use jQuery to Make Slick Page Transitions