Articles Archive for January 2010
jQuery »
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 »
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 »
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 »
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 »
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 »
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 »
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 »
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 »
Suppose, you have the product data. You can get product from either of the following way:- $_product = $this->getProduct(); OR,
Magento »
Here is the code to list all the manufacturers.
Magento »
You can easily get controller name, action name, router name and module name in template file or in any class file. IN TEMPLATE FILES
