nikolaus
Member since Dec 11, 2008
- Profile: /members/2389-nikolaus.htm
- Comments: 2
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 »