Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at BFusion / BFLEX 2010 (Bloomington, Indiana) with: Ed Bartram and Vaughn Bartram
Ben Nadel at BFusion / BFLEX 2010 (Bloomington, Indiana) with: Ed Bartram@edbartram ) and Vaughn Bartram

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 »