After months intense of cogitation and wiping the beaded sweat from my brow, I discovered a means of removing dashes from JavaScript strings. Even though this is a technical achievement so stupendous it dwarfs One Click Shopping, I shall relinquish all patent rights and humbly offer it freely in the name of social progress:
function removeDashes(s)
{
var t = '';
for(var i=0; i {insert less than sign here} s.length; i++)
if (s.charAt(i)!='-')
t = t + s.charAt(i);
return t;
}
Update: Argh! I can't figure out how to get a less than sign to work in Blogger. The HTML conversion blows it.
No comments:
Post a Comment