Author: admin

How To Get Url Parameters Using Javascript

Here, I am going to share Javascript code to get the URL querystring parameter values. Let me take a sample URL and try to get the parameter values in it. http://www.techtricky.com?id=77&name=sree Here is the function to create the Javascript object with parameter names and values. function getUrlParams() { var params = {}; window.location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(str,key,value) {

YouTube Trends Dashboard

With the YouTube Trends Dashboard, you can view the recently most viewed and most shared videos. They have given an option to browse by country, region, age and gender. You can switch between Most Viewed and Most Shared videos by clicking on the respective links on the dashboard. Most viewed videos are the videos which

jQuery Template Plugin

jQuery template plugin allows you to render template items into HTML DOM, template items are HTML markup or text. Basically, we can define HTML markup with template variables and replace these variables inside the DOM when you get the data from an Ajax call or local static data. Here is the simple example to display

Useful Gmail Labs for Better User Experience

Gmail Labs are useful features to enhance the user experience. You can see list of labs by going to your settings within your Gmail and clicking on “Labs” tab. Here is the list of useful labs of my choice: Undo Send This lab feature allows you to undo the sent email up to 30 seconds

Highlight text with jQuery

Here I am going to show how to highlight particular word within a block of text.You can use this feature to:– highlight the search terms on the page.– highlight particular keywords dynamically on the page.– highlight negative numeric values on block of page. Below is the working example, enter the text in textbox and click

JQuery WYSIWYG HTML Editors

WYSIWYG(What You See Is What You Get) Editor allows users to enter rich HTML text on the fly in the browser. These controls are very useful for the sites which allow users to publish the content. Here I am going to share JQuery WYSISYG editor, i.e. “NicEdit” and other interesting editors. NicEdit is a Lightweight,

JQuery Textbox Hint

In most of the websites, you might notice textboxes with gray text inside which explains what is it for, and when you focus on the textbox it disappears and reappears when you leave the empty textbox. To achieve this, what i do is:– get the hint text from title attribute of textbox.– Show hint text

JQuery Check/Select all Checkboxes

Using JQuery, i will show how to:– select all checkboxes in a page.– select checkboxes within one block or selected area(table or div).– check selective boxes within the block or page.(select boxes based on css class in block or page) Here is the working example: column1 column2 A B C D E F G H

20 Useful Firefox Add-ons for Web Developers

Most of the web developers use Firefox browser for their development work as it has tons of useful extensions to help in productivity, performance and perfection. Here are some of the useful and commonly used extensions: 1. Firebug This is an essential add-on every developer should have. Firebug allows to inspect HTML and modify the