NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: GordonF on November 05, 2021, 03:22:25 AM

Title: html textarea in a browse
Post by: GordonF on November 05, 2021, 03:22:25 AM
Is there a way to have an html textarea in a browse?

I realise that strings can become multi-line if long enough but only by word wrapping, line breaks are not respected. I really need a method to correctly display text containing line breaks in a browse row, ideally limited to a number of lines with a scroll bar, no EIP ability is required for my needs so readonly is fine.

Gordon
Title: Re: html textarea in a browse
Post by: Matthew51 on November 05, 2021, 01:37:15 PM
Check "Allow xHTML in column" for the column you want. General tab Column subtab.

As for limiting the number of lines, you will have to do that with css. max-height should do the trick.
Title: Re: html textarea in a browse
Post by: Bruce on November 07, 2021, 06:29:34 PM
if your strings contain line-breaks (ie <13,10>) and you want to display them preserved in HTML you can pass them through the StringTheory LinEndings method to convert them to html before displaying.

Cheers
Bruce
Title: Re: html textarea in a browse
Post by: GordonF on November 08, 2021, 01:47:11 AM
Many thanks for both of your help, I've used both suggestions and it works just fine, I can work on the line limit separately.

Gordon