a good article here teach you how to register .NET dll to be used in classic ASP world:
link is here
Tuesday, May 30, 2006
Wednesday, May 24, 2006
I hate XSLT
Oh, I hate this so much!!
A variable can't be re-assigned. It's much easier if I can use any other stupid language to parse XML. In my opion, even Basic is much better than this most stupid XSLT parsing. I hope I can prove myself wrong in the future cause looks like there are many fans of this.
But for now, I'll warn anyone who start considering to solve a problem using XSLT: if you just want to parsing XML, then it's fine. But keep in mind if you want to add some extra logic into it, that will definately KILL you. (at least a lot of your time)
A variable can't be re-assigned. It's much easier if I can use any other stupid language to parse XML. In my opion, even Basic is much better than this most stupid XSLT parsing. I hope I can prove myself wrong in the future cause looks like there are many fans of this.
But for now, I'll warn anyone who start considering to solve a problem using XSLT: if you just want to parsing XML, then it's fine. But keep in mind if you want to add some extra logic into it, that will definately KILL you. (at least a lot of your time)
Sunday, May 21, 2006
very good article about parameter passing
A very good article about parameter passing in C#
I think I was confused at one point, but get really clear idea after reading this.
link
summary:
1. difference btw value variable and reference variable, e.g. int and a class
2. difference btw passing by value and passing by reference, this is different than type of variables
I think I was confused at one point, but get really clear idea after reading this.
link
summary:
1. difference btw value variable and reference variable, e.g. int and a class
2. difference btw passing by value and passing by reference, this is different than type of variables
Friday, May 05, 2006
javascript to jump focus
<INPUT maxLength=3 size=3 name="phone1" onKeyUp="JumpFocus(this,'phone2')"> -
<INPUT maxLength=3 size=3 name="phone2" onKeyUp="JumpFocus(this,'phone3')"> -
<INPUT maxLength=4 size=4 name="phone3" onKeyUp="JumpFocus(this,'sEmail')">
-------------javascript function-------------
function JumpFocus(currControl,nextControlName)
{
if(currControl.value.length == currControl.getAttribute("maxlength")) //jump focus to the next control
{
document.getElementById(nextControlName).focus();
}
}
<INPUT maxLength=3 size=3 name="phone2" onKeyUp="JumpFocus(this,'phone3')"> -
<INPUT maxLength=4 size=4 name="phone3" onKeyUp="JumpFocus(this,'sEmail')">
-------------javascript function-------------
function JumpFocus(currControl,nextControlName)
{
if(currControl.value.length == currControl.getAttribute("maxlength")) //jump focus to the next control
{
document.getElementById(nextControlName).focus();
}
}
Subscribe to:
Posts (Atom)