Archive for the 'geeky stuff' Category

Passing parameters to event handler functions

When coding in javascript, some people may wonder how to pass extra parameters to the event handler function. Here is a workaround hope can help you:
blow the example is coded using prototype
$(el).observe(’click’, function(e){ EVENT_HANDLER_FUNCTION(e, para1, para2, …)})
I guess the example code is quite self-explaining, hope can help =)

Tuesday, July 28th, 2009

Mouseover and mouseout problem

I discovered recently that it causes headache when using mouseover and mouseout events together on one HTML element. This will not have any problem if that element does not have any child element, otherwise,  the problem starts. My problem occurred when I tried to use special effects when mouseover and mouseout of an element which [...]

Monday, July 27th, 2009

First touch of Drupal

Drupal is one of the popular platforms which let users easily publish, manage and orgnize rich contents on the web. It is very similiar to Wordpress.
Personally, I have never heard of it before last month. I started with a new web site project last month and I was supposed to use drupal to build it. [...]

Saturday, July 11th, 2009

Session lost after being redirected by Paypal.com…

Currently I was working on a simple Paypal payment system, which let our site user to buy credits via paypal and then redirected to our site again to confirm the deal. It was very simple and there was no problem at all when I was just trying with a single testing payment. However, the problem [...]

Friday, May 8th, 2009