Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at CFUNITED 2008 (Washington, D.C.) with: Hal Helms
Ben Nadel at CFUNITED 2008 (Washington, D.C.) with: Hal Helms@halhelms )

nikolaus

Member since Dec 11, 2008

Recent Blog Comments By nikolaus

  • Ask Ben: Javascript String Replace Method

    Posted on Sep 10, 2008 at 1:00 PM

    To blueprints: Here are your javascript expressions to convert a Windows file path to a UNC path and back: Example 1: Var inputstring = ... (do that yourself)(grab string from the input node via the usual dom access methods - use a js toolkit if you find it hard to get it to run on all browsers) ... read more »

  • Ask Ben: Javascript String Replace Method

    Posted on Nov 25, 2007 at 9:57 AM

    Hi Ben, the String.prototype.replaceAll variant is definitely the most elegant. I have just one litte improvement in mind: it runs into an endless look when given identical parameters (can occur when used dynamically on data). i.e. a little <code>if(strTarget == strSubString) return;<... read more »