Archive for the ‘web development’ Category

After reading my previous post Drag and Drop div area with pure javascript - Step 1, you have created javascript file draganddrop.js. Means you can add this javascript file to html page. so create a file index.html file and put below content in the head...

Today I have to work on drag and drop functionality and I found that on mostly sites it provides using Jquery but I have to develop with pure javascript. so I found best code for it. and this was the solution : First create a file draganddrop.js and put...

If you want to show any div area in the middle on click any link or button then follow these steps: 1. First download and add JQuery js in your file. 2. now create a function If you want to show any div area in the middle on click any link or button...

Javascript Trim Functions Use the code below to make trim a method of all Strings. These are useful to place in a global Javascript file included by all your pages. String.prototype.trim = function() { return...

First create a static block from admin >> CMS >> static blocks and write this code in your phtml file :

getLayout()->createBlock('cms/block')->setBlockId('given_Static_block_name')->toHtml();
?>

Hi magento developers, if you are getting problem in login in admin panel after fresh magento installation on your system then I have a solution for magento version 1.4.x.x go to: app/code/core/Mage/Core/Model/Session/Abstract and open up varien.php,...

Steps for Remember me functionality in login.phtml Step 1: Please find the following path http:\\yourdomain\app\code\core\Mage\Customer\controllers\AccountController.php Step2: Find following function: public function...

If you want to show product thumbnail on any page in your requirement size then At the showing page : <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(100, 100) ?>" border="0"...

window.location and window.location.href will support to all browsers but it will not support to IE6. For this I have a solution: Suppose you code is : window.location = "http://naveenos.com/"; // Not working??? // Also this does not...

To create a site in multiple languages you should do two main things : Write this code after connection created in database file : mysql_query ( 'SET...