Field control display only and scrollable

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Pnirff
Ebase User
Posts: 21
Joined: Fri Jan 25, 2013 8:36 am

Field control display only and scrollable

#1

Postby Pnirff » Mon Mar 11, 2013 6:15 pm

Hello,

I hope, this is an easy one as well. I want to use a rich text control for a chat. I use a field control and set the display type to text area. Set the display only to "true" and the HTML to on. After 5 recs, the control should show a scroll bar, but this happens only, when the display only is set to false, but then, the HTML code is not show ... Argggghh!

What did I wrong?

Any help would be great.
Manfred
0 x

Steve
Moderator
Moderator
Posts: 423
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#2

Postby Steve » Tue Mar 12, 2013 9:02 am

Hi Manfred,

When the field control is set to display only the HTML written out is different. It will write out a DIV tag instead of an INPUT tag.

You will need to put this in a panel and set a height on the panel in the style attributes. Also you will need to set the CCS property overflow to auto.

The CSS style should look like this for your surrounding panel:

Code: Select all

height: 200px;
overflow: auto;
I hope this helps.

Steve
0 x

Pnirff
Ebase User
Posts: 21
Joined: Fri Jan 25, 2013 8:36 am

#3

Postby Pnirff » Tue Mar 12, 2013 9:55 am

Hello Steve,

thank you very much. This helps alot and it works fine. :)

Manfred
0 x


Who is online

Users browsing this forum: No registered users and 49 guests