Saturday, September 10, 2011

A Cross Browser* and Standards Compliant Custom ScrollBar Script by Hesido

I have tried to style the scrollbars through CSS. I used
scrollbar-base-color: #009966;
scrollbar-track-color: #009966;
scrollbar-face-color: #ffff99;
scrollbar-highlight-color: #009966;
scrollbar-3dlight-color: #009966;
scrollbar-darkshadow-color: #009966;
scrollbar-shadow-color: #009966;
scrollbar-arrow-color: #009966;

But browsers like Firefox and Safari was not able to get the this styling.
I tried to find solution for this, but was not successful until I got this site :
This site helps for styling scrollbar using javascript with examples and source code.

Sequencing data in rails application

There are many plugins available for sequencing data. Sharing something similar which depends on the jQuery library.
Considering that there is a Single table inheritance with more that 15 different types.
There were more than 15 views of the inherited modules.

Sunday, September 4, 2011

Woking with position:absolute in CSS

position:absolute is really nice when we are positioning some div through CSS. But we need to understand how to use it properly. When we add position:absolute we also need to take care of its behaviour. Just adding this does not make any difference, then we also need to add margin or directly(top, right, bottom and left) positions.

Creating a static site in ruby

Creating a static site is now very easy in ruby, Just need to install the gem.
The article about creating the site can be found at

Saturday, February 26, 2011

Installing ruby on rails on windows

One click installer is the best tool to install ruby on windows machine, just need to take care, that you download the latest and stable version from
Once you download that allow the system to start installer
But you are not done with the installation yet.
If you are about to run the project right now, then it will throw some error.

To avoid these errors you need to run some commands
gem install rubygems-update
gem update --system
gem install rails

Thats it, you are ready to have fun with coding rails applications. Have fun :).

Wednesday, February 16, 2011

Rails radio buttons and javascript issues

One of the application I was working on was having radio buttons which needed a javascript

onClick function. Rails radio_button_tag behavior was strange. That was not even giving javascript alert. Did some Google Search but failed.

At last I have to add the simple and pure html code for radio button. As that was going to work 100%.

Strange as I have added javascript to checkboxes, select_tag in rails code and it also worked, but didn't able to find solution to add javascript in radio_button_tag.