Magento: Set title, keywords and description in your module

Suppose, you have created a new module or you have an existing module. You have a frontend page for your module. You want to set or change title, keywords, and/or description of your module page. Well, you can do so by adding few lines of code in layout xml file of your module. The layout … Read more

jQuery: Animate and Transfer effect with Image

I have created a bit of image animation with the Transfer effect of jQuery UI. By animation, I just mean fade in and out. But the transfer effect makes it so beautiful :). The Transfer effect can be used with effect() method. This Transfers the outline of an element to another element. Very useful when … Read more

jQuery: A simple Slideshow

I have made a very simple jQuery slideshow. When you click the play button, then the images changes with fade in and fade out effect. View Demo || Download Code I have used animate() jQuery function for fade in and out. queue() and dequeue() functions along with setTimeout() function are used to set time interval … Read more

Javascript: SetTimeout

It is very easy to execute some code after a specified time-interval, i.e. setting some time interval between the code. We can use the setTimeout function. Here is the code: setTimeout(function() { alert("hello"); }, 1000); The basic structure is setTimeout(function, time in ms) Hope it helps. Thanks.

jQuery: Print array and object

This article shows how to print array and object on jQuery. You can do it with jQuery.each() function. jQuery.each() function can be used to iterate over any collection, whether it is a map (JavaScript object) or an array. Here is the javascript code to print array or object: jQuery(document).ready(function(){ var arr = [ "earth", "mars", … Read more

Simple and easy jQuery tabs with AJAX and PHP

In this article, I will be showing you how to create jQuery AJAX tabs in a very simple and easy way. View Demo || Download Code Here, tabs.php contains the php code which contains data to be displayed. <?php $p = $_GET['id']; switch($p) { case "1": echo '<h2>Google</h2>Content goes here !<br style="clear:both;" />'; break; case … Read more

php.ini : Most commonly used php directives

Below are the most commonly used php directives. You have to change php.ini file in order to configure php settings. This just means changing these directive’s option and value. 1) short_open_tag = Off Allow the many servers don’t support short tags. 2) max_execution_time = 30 Maximum execution time of each script, in seconds 3) error_reporting … Read more