Archive for March, 2005

JavaScript parseMoney

Thursday, March 31st, 2005

In order to change the input number format to currency format, e.g. 12500 => 12,500. The javascript code I write as follows: . emergency dentist, teeth whitening London uk, dental veneers.

function parseMoney(objID) {
var obj = document.all[objID]; //get the object
if(obj.value=='’) {
return; //do no job when the value is empty
}
//check number format
var […] chwilówki online

JavaScript Trim

Sunday, March 27th, 2005

JavaScript does not support trim function which VBScript does. Here is the implementation of trim function in JavaScript simply using regular expression.
function trim(str) {
return str.replace(/^\s*|\s*$/g,”");
}

I’m Back

Saturday, March 26th, 2005

Hello my blog. I am back. Sorry have leaved you aside for a long time. I am quite busy lately and do not have much time to be online.

It seems that I have missed a lot of updated information. Wordpress 1.5 has been released. New Kubrik 1.2.6 template also has come. What else? Friendster’s blog? […]