October 2008


Sometimes focus on a specific form element will not work in Firefox.
To make it work in Firefox, we can use settimeout function.

The function setTimeout() executes the javascript code after a specified time interval.
Syntax : setTimeout(“javascript statement”,milliseconds);

The first parameter of setTimeout() is a string that can contain any JavaScript statement.
The second parameter indicates how many milliseconds from now we want to execute the first parameter.

To focus on a particular form element, we can give the following statement :

settimeout(function() { ptr.focus();} , 0) where ‘ptr’ is the form element.

Advertisements

A friend whose father works for the government health inspection passed on this info.

Their job is to inspect all hawkers, their cooked food, their store hygiene, etc. They found sugar cane juice has the highest content of bacteria among all food. In fact, it has exceeded the set limit.

Hence, they had to find out why. They went round all sugar cane stores and watched the way the hawkers handled their sugar cane, wash their glasses, their entire procedure.But they couldn’t find the problem.

One day, they stayed till closing time and discovered some shocking facts! Whenever, the hawkers closed their stores, they would wash the floor with detergent.

As we know, the remaining sugarcanes will be placed at the back of the store, vertically standing and as sugarcanes are very porous, they tend to absorb whatever liquid around them.

Besides the soapy water, the dirt on hawkers’ boots, cats’ urine, etc, will all be absorbed??

A friend, who loved sugar cane juice, was pregnant. She was always drinking sugar cane juice. Anyway, one day she miscarried and the fetus was already like 6 or 7 months old. When the doctors did an autopsy to find out why all of a sudden the fetus had died inside her, they found traces of some chemical substance, which was found in cat urine. Large traces of it.

While it would not be able to harm adults, it was extremely toxic to babies, what more a fetus? So they tried to determine how this cat urine thing could have ended up in the fetus.

This meant that it had to be digested by the mother, right? And the only logical conclusion they could come up with was that since these sugar cane juice stall holders just leave the canes lying around on the wet and dirty floor, it would not be impossible to think that stray cats could have peed on those sugar canes or near those sugar canes.

So think carefully the next time when ordering that favourite sugar cane juice!

Let’s take action to make this world a better & safer place for ALL of us & the generations to come.
Is there anyone who is going to take Sugarcane juice from hawkers anymore?