Home » Archive

Articles Archive for January 2010

jQuery »

[28 Jan 2010 | 4 Comments | 42,288 views]

In this article, I will be showing you how you can replace string, div content, and image src value with jQuery. You can do this by replace() function in jQuery.

jQuery »

[26 Jan 2010 | 2 Comments | 11,379 views]

You can use jQuery queue() function with setTimeout() function to set some time interval between events in jQuery. Like, you have run one event and wanted the browser to wait for some time to run the next event. At this instance, queue function is very helpful. Suppose, you wanted an image to fade in and [...]

jQuery »

[25 Jan 2010 | One Comment | 2,373 views]

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:

jQuery »

[22 Jan 2010 | 2 Comments | 12,350 views]

It’s very easy to print array and object with jQuery. You can do it with jQuery.each() function. The 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: Here, arr is a numeric array. Its [...]

jQuery, PHP »

[20 Jan 2010 | 15 Comments | 7,501 views]

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 »

[14 Jan 2010 | One Comment | 204 views]

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

PHP »

[14 Jan 2010 | No Comment | 1,761 views]

We can view the php settings by creating a php file in our web root with the following code: Let the name of the file be phpinfo.php Open http://localhost/phpinfo.php in your browser in your local computer. If you are working online then open http://yoursite/phpinfo.php

Javascript »

[8 Jan 2010 | 4 Comments | 3,980 views]

It’s a real headache when you have to work on objects and arrays in Javascript. It would be lot easier to detect elements of the Javascript objects/arrays if we have print_r function in Javascript as we have in PHP. I googled the web and have found a very efficient print_r Javascript function. This has helped [...]

Magento »

[7 Jan 2010 | 2 Comments | 8,048 views]

Suppose, you have the product data. You can get product from either of the following way:- $_product = $this->getProduct(); OR,

Magento »

[7 Jan 2010 | 7 Comments | 5,650 views]

Here is the code to list all the manufacturers.

Magento »

[7 Jan 2010 | 3 Comments | 9,196 views]

You can easily get controller name, action name, router name and module name in template file or in any class file. IN TEMPLATE FILES