Thursday, February 24, 2011

Toggling Default Value of Textbox on Focus

You might have noticed the textboxes on most of good looking sites that have some default value written in them. When you click on the textbox, it becomes blank but as the focus loses, the default value again appends to the text box. Well this is a simple trick with JavaScript. Lets see the code for performing this trick.

Wednesday, February 23, 2011

Creating Custom Configuration Options in Magento Admin

As a Magento developer you frequently encounter the Configuration page of Magento admin backend. But have you ever noticed how these configuration pages are created and where are those configuration options saved? If not don't worry, today I will tell you how to create an admin configuration page for you custom module. You might wonder that their is no '.phtml' involved in this configuration page. Shocked! Its ok, we have to play only with the xmls to create this functionality. So now lets start the development.

Monday, February 21, 2011

Twitter Style Fixed Header using CSS

It would be really tempting to implement Twitter style fixed header menu in your web pages. But it can become a headache for you because of cross browser CSS issues. The bad guy IE always makes the mischief. So I have tried to create a good looking header that looks like that of Twitter. Hope it will help you beautifying you web pages. Take a look at it...

Monday, February 14, 2011

How to hide 'Add Item' button in Magento Backend Grid

In some cases you might need to hide the 'Add Item' button on the grid page in backend module for admin. This may eat your head if you have no idea of what is going on. But this is as simple as nothing. Follow the below given steps and you are done in less than a minute.

Tuesday, February 8, 2011

Learn Simple Method Chaining in PHP

In this article we will learn an advanced OOPS programming concept in PHP known as Method chaining. If you have worked on PHP frameworks like Zend, Magento or CakePHP, you might have noticed a very convinient style of accessing methods of different classes, It looks as:
This type of programming technique is known as method chaining. If you are thinking how is it possible to perform this chaining, then don't worry. Today we will learn this fancy concept.

Sunday, February 6, 2011

Create Simple Paint Canvas using JavaScript

JavaScript can be a fun for you if used creatively. Here I have tried to create use JavaScript for some fun. This time I have created simple canvas for painting using jQuery and basic JavaScript. The concept is very simple. I have just created a grid of small 'td' elements iside a table and on mousemove, just change the background color of the 'td'. To add some spice, I have also added to color selection facility in the simple paint canvas. So paint and enjoy the JSCanvas...

Popular Posts


© 2014 Web Speaks . All rights resevered. Designed by Templateism