Re: Javascript / AJAX / Textarea problem

2015-05-14 Thread Gary Stainburn
I've simplified this to: form.config.value=mary\r\nhad\r\na\r\nlittle\r\nlamb; form.config.value=mary\nhad\na\nlittle\nlamb; form.config.value=marybr /hadbr /abr /littlebr /lamb; The form is: form name=clientConfigForm id=clientConfigForm method=post

Solved - Re: Javascript / AJAX / Textarea problem

2015-05-14 Thread Gary Stainburn
Thanks for the help. The problem was that I had added white-space: nowrap; to the style to try to prevent word-wrap. Instead I should have added wrap=off to the textarea object On Thursday 14 May 2015 11:35:38 Gary Stainburn wrote: I've simplified this to:

Javascript / AJAX / Textarea problem

2015-05-14 Thread Gary Stainburn
Hi folks, At some point the following code stopped working properly, but I don't know when. Now when I try it, both on Firefox and IE all of the text appears on the first line. I've checked the source text and it has newline characters (I've also changed them to CRLF which made no change).