Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at the New York ColdFusion User Group (Jul. 2008) with: Clark Valberg and Simon Free and Dan Wilson
Ben Nadel at the New York ColdFusion User Group (Jul. 2008) with: Clark Valberg@clarkvalberg ) , Simon Free@simonfree ) , and Dan Wilson@DanWilson )

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 »