On Sun, Apr 19, 2009 at 3:58 PM, Rick Faircloth <r...@whitestonemedia.com> wrote: > That worked, Ricardo...to a point. > (Haven't tried your solution, Charlie...) > > I actually just embedded the replace function in the code like this: > > out.push('<div id="sectionTextDIV">' + row[4].replace(/\r?\n/, '<br/>') + > '</div>'); > > and that worked, but only for the first line break in the text. > > I tried adding 'all', like I do when I use the replace function in CFML, > but it had no effect. > > ...'<br/>', 'all') + '</div>'); > > Suggestions?
Sure. I suggest you return the data in the format that you need it to be in. You've complained in the past that JS isn't like CF. Here's a place where you can play to your strengths and manipulate the string prior to returning it from the remote CFC call. -- I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.