Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with:

Ben

Member since Dec 11, 2008

Recent Blog Comments By Ben

  • Ask Ben: Javascript Replace And Multiple Lines / Line Breaks

    Posted on Nov 28, 2007 at 10:40 AM

    Thanks for the post it was most helpful however when I did some testing I found that in IE6 the textarea returns both \r and \n so when I wrote it to the database I was getting two line break characters. The following fixed the problem for me: val = val.replace(/\n/g,"<br/>").replace(/\r/g,"... read more »