Archive for the 'jQuery & JavaScript' category

Characters Countdown Counter. JavaScript.

May 31 2013 Published by under jQuery & JavaScript

Every script we work on, include text forms with characters counter and limit.

The basic requirements to this program are:

  • Pure JavaScript, no frameworks.
  • As simple as possible.
  • Count text field characters.
  • Display characters count in a separate field.
  • Stop counting on getting to 0 (zero).
  • Limit new characters input on getting to 0 (zero)

Continue Reading »

One response so far

Copy to Clipboard. Javascript. Cross Browser Solution.

Apr 16 2013 Published by under jQuery & JavaScript

Doing front end coding job, some time ago appeared a interesting problem.

How to facilitate our web service utilization by adding a Copy to Clipboard Button.

The Copy to Clipboard feature appears to be very helpful for website users, as they usually don’t know how to copy content, or don’t think they need a content copy (the copy button is just a hook that makes them click copy button), or they have to run same copy to cllipboard operation multiple times on the same page and one click copy button would save them their time and efforts…

Continue Reading »

17 responses so far

Characters Count. jQuery. Count Up, Count Down, Character Limit

Mar 28 2013 Published by under jQuery & JavaScript

Overwhelming majority of websites use forms for different purposes. Most forms use text fields or textareas. Many forms require characters counting or data limitations by the number of characters.
Characters are usually counted after form submission by the data processing languages, but along with internet development friendly interfaces became a must.

Submitting a form with character limitations user would like to know when the limit is reached before data is submitted.

As an appropriate language for creating friendly interfaces, character counting and data limitations is JavaScript and the most popular JavaScript library – jQuery.

Continue Reading »

One response so far

jQuery check/uncheck checkbox

Mar 12 2013 Published by under jQuery & JavaScript

Using groups of checkboxes in modern web programs is not a rare thing.
Groups of checkboxes are frequently used on group actions like selecting multiple options from a list then doing a operation over the selected list.
Check/uncheck operation is pretty simple over a small group of options: like selecting 3 checkboxes out of 3. But what if there is necessary to select between 50 or even more options? what if it is necessary to select all 50 checkboxes?

To make life easier we can use jQuery to solve this.

Continue Reading »

No responses yet

jQuery CountDown Timer

Dec 14 2012 Published by under jQuery & JavaScript

Say you need to display time left until a even is going to happen. Preferable this timer should display time in a human readable format.

e.g. Left 0 days 23 hours 59 minutes 59 seconds – counting the time down.

Continue Reading »

No responses yet

Run jQuery on DOM loaded

Oct 27 2012 Published by under jQuery & JavaScript

When writing first jQuery lines of code, the most common error is not taking into consideration the page content loading. Developers try to perform actions over the page content that is not loaded yet. Then spending days trying to find out why their code might not work.

There are 2 solutions of this problem

Continue Reading »

No responses yet