Monday, December 6, 2010

IE7 Background Ghost When Element is Hid

There seems to be little documented on this issue. I will share it here if anyone ever come across this issue. Keep in mind that I am using jQuery, not sure if it makes any difference. Also I didn't try to reproduce in a standalone example because I don't have enough time; but you would not be reading this if you don't have a similar problem anyway.


<div id="parent">
   <div id="child"></div>
   <div id="child2"></div>

#child has a background image. #parent is then hidden by
and then #child is hidden by
When you open #parent again, you still see the background image of #child even though it's already hidden with style="display: none;". When you mouse over it, the background image would disappear.


Hide elements in order of inner element to outer element. i.e.,

I spent almost 2 hours debugging this. Hope this post can save you some times.

Friday, August 27, 2010

Problem with Sending Mail from a Cloud Server

Ever since I migrated to a cloud server, I had not received the occasional emails from my sites. Until today when I was expecting a email from one of the sites. I waited and no mail comes through, I triggered few more re-sends, but none made it to my inbox.

Friday, August 6, 2010

addJs vs addItem in Magento

Using addJs will add a Javascript tag with source file relative to the root directory.

Saturday, July 31, 2010

osCommerce Migration Tool For Magento Installation Failure

I tried to install osCommerce Migration Tool for Magento today and I encountered the following error.

SQL Errno 150 While Importing Magento Database

I was moving Magento install from one server to another, without looking at any documentation on recommended way to do that. I exported/dumped the database and imported it to the new one. The database was huge, it was taking so long that I stepped away to do other stuffs. When I came back it terminated after executing 290k queries and reported an errno 150. This indicated a problem with the foreign keys.