, Fiouz <fiouzy@...> wrote:
> On 3/5/08, melindafowler80 <melindafowler80@...> wrote:
> > In using a tree view to drill down user input, I ran across a user
> > formatting a <textarea> with the Enter Key to space his data out
> > line to line. It is handled correctly in all other displays of
> > field, but in the TextNode the first <ENTER> character stops the
> > display. The entire page is built but will not displayed. The
> > message is "undetermined string content".
> > new YAHOO.widget.TextNode("<font color=$MPTCOLOR><table
> > width=738px><tr><td width=373px><textarea cols=60
> > rows=5>$MPNNOTE</textarea></td></tr></table></font>", tmpNode,
> > If anybody has any suggestions, I would really appreciate it.
> Just replace the content of your $MPNOTE variable with, if using
> something like nl2br($MPNOTE)
Thank you! that got me on track. I ended up with both CR and LF to
deal with so I used the two-line conversion:
$MPNNOTE = str_replace(chr(13),'',$MPNNOTE);
$MPNNOTE = str_replace(chr(10),'<br>',$MPNNOTE);
It worked beautifully.
Thank you again,