Multivalue Checkbox – jQuery plugin

Recently, I was looking for multivalue checkbox which gives user to select multiple options. I can do it with radio button but as there isn’t required space to give 3 or 4 radio button and it’s lable as well as some designing issue I was looking for multivalues checkbox.

Finally, I have made jQuery plugin which convert my html checkbox to multivalue checkbox with it’s multiple options icon image. Here I have just hide html checkbox and add one img tag before checkbox which represented the selected option’s icon.

You can review full source code on Github repository, and Click Here for DEMO.

Hope this help and don’t forget to submit comment or issue.


REST services in ColdFusion 10

RESTful Web Services are becoming increasingly popular mostly because of their simplicity and ease of use. You can access RESTful Web Services easily over HTTP/HTTPS. ColdFusion 10 provides support REST services. You can easily expose your ColdFusion Component (CFC) as a RESTful Web Service through a few attributes you specify within your CFC.

Some new attributes are added in ColdFusion10 to help you create a REST service to the following ColdFusion tags: cfcomponent , cffunction , and cfargument . Once you create a component and register it with the Administrator, you can access it via a HTTP request.

First, specify the rest attribute as true within the CFC, along with the restpath attribute, which specifies the path of the service accessed over HTTP. On every function in the CFC it is possible to associate the HTTP method that should invoke the corresponding function.

For more information: click here – There is such a nice article by Sagar Ganatra regarding how to getting started with REST services in ColdFusion 10.

URL Scheme for Telephone Numbers in HTML

Hello Everyone,

Now we can use tel: URL Scheme for Telephone Numbers in HTML. It is similar to the mailto: URL Scheme. Just like the mailto: URL Scheme will open the default mail application will the tel: start telephone call. If the HTML page is viewed on a mobile phone and we select a link with the tel: scheme we can immediately call the number following the scheme. On a desktop computer a VOIP call will be initiated.

<a href="tel:+31123456789">Call us</a>

More Information available at:

Numbers in JavaScript

Hello Guys,
Once I wonder that why the I got the 10 value in my javascript variable x in the following example:

var x = 1 + 011;

After, googling some times I got that it was a radix param issue [more].

While parsing into the number javascript assumes the following:

  • If the string begins with “0”, the javascript consider the string as octal number and convert it to decimal number. 
  • If the string begins with “0x”, the javascript consider the string as hexadecimal number and convert it to decimal number. 
  • If the string begins with any other value, it will consider as decimal number.    

So in above example 011 considered as an octal number and javascript converts it to decimal number 9 and then add 1 to 9 so I got the answer 10.

Form Fields with the same name – ColdFusion 10

In ColdFusion when you submit form, and the form contains multiple form fields with the same name (a list of checkboxes, for example) that these values will be available to us as a comma-delimited list in the FORM scope.

ColdFusion 10 gives us the ability to transform these lists into arrays automatically. It is as easy as adding the following to Application.cfc

this.sameformfieldsasarray = true;

Now, anytime you submit a form where more than 1 form field share a name, the value of FORM.{fieldName} will be an array instead of a list.

Turn Your PC into Web Server

I am looking to host a website on internet without buying any web hosting service. I want to host my website on my own PC and it will be accessible through internet from any where. After some googling I found that The Opera web browser includes a unique and useful feature called Opera Unite that turns your computer into a web server with a simple click. You may wonder why would anyone want to do that but turns out that there are some practical use cases here.
For instance, you can share the Pictures folder on your computer through Unite and it can then be accessed from the browser of any other computer as a standard web address. You can even host a website on your computer without going though a web host.

Get Opera Unite in the new Opera

Opera Unite is a useful service but unfortunately, it is no longer enabled in Opera v12.0 and later.  If you would however like to use the service in the newer releases of Opera browser, there’s an easy workaround:
Step 1: Download and install Opera 11 on your computer. I couldn’t find the installer on the official Opera website but there’s one available on for Windows.
Step 2: Launch the Opera program and click the Unite icon in the browser’s status bar. Turn on Opera Unite and also enable the Web Server and File Sharing Services.
Step 3: Exit Opera and head over to to download the latest version of Opera. Install the program (overwrite the existing installation) and now when you open Opera, the Unite option will be enabled by default.
Alternatively, if you would not like to touch your existing installation of Opera, simple download the portable version of Opera from (choose version 11 here) and it will have the Unite feature built-in.