Here's a reason why javascript sucks so bad. The following *SIMPLE*
piece of code will not work properly. Jesus, how I yearn for the day
when a real programming language can be substituted for this patched
together scripting horror. I suspect the string object's methods are
simply not robust enough for this because neither of the strings
appear to have the value they should when this loop runs. Perl would
handle this kind of thing with no problem. Javascript definitely needs
to catch up. (Sorry about the rant, but for a long-time programmer
this is terribly frustrating!)
-----------------
for (x=0; x<=theStr.lengt h; x++);
{
theNewStr += theStr.charAt(x );
}
-----------------
--pstone
piece of code will not work properly. Jesus, how I yearn for the day
when a real programming language can be substituted for this patched
together scripting horror. I suspect the string object's methods are
simply not robust enough for this because neither of the strings
appear to have the value they should when this loop runs. Perl would
handle this kind of thing with no problem. Javascript definitely needs
to catch up. (Sorry about the rant, but for a long-time programmer
this is terribly frustrating!)
-----------------
for (x=0; x<=theStr.lengt h; x++);
{
theNewStr += theStr.charAt(x );
}
-----------------
--pstone
Comment