Prevent any user data entry in a text box

G

Guest

I want to display some text in a box with a scroll bar. I am using a Text
Area form. But I don't want a user to be able to click into the box or type
in it. It is just to display a bunch of text. They do need to use the
scroll bar. How can I prevent users from clicking into the box or editing?
(Even though the changes aren't saved, I still don't want the user in the
box).

Thanks.
 
M

Mike Mueller

Why not just make it look like a text box?

Welcome <span style="font-size: smaller; border: 1px solid
black; padding: 2px">text box info</span>

will render the word welcome, and then a box containg the
phrase 'text box info'




:I want to display some text in a box with a scroll bar. I
am using a Text
: Area form. But I don't want a user to be able to click
into the box or type
: in it. It is just to display a bunch of text. They do
need to use the
: scroll bar. How can I prevent users from clicking into
the box or editing?
: (Even though the changes aren't saved, I still don't want
the user in the
: box).
:
: Thanks.
 
G

Guest

It is a long document, many pages. Like a license agreement. So I need a
scroll bar. The Text Area feature looks perfect, except that a user can
click into it. Any ideas are welcomed. Thanks.
 
M

Mike Mueller

Then change it from a <span> to a <div>, and use css to
define a height and scrollbars:
<div style="width: 75%; height: 200px; padding: 3px;
border: 1px solid black; overflow: scroll; overflow-x:
hidden">

Example: http://lfd.lannonfire.com/forums/FP-NG/EULA.html




: It is a long document, many pages. Like a license
agreement. So I need a
: scroll bar. The Text Area feature looks perfect, except
that a user can
: click into it. Any ideas are welcomed. Thanks.
:
:
: "Mike Mueller" wrote:
:
: > Why not just make it look like a text box?
: >
: > Welcome <span style="font-size: smaller; border: 1px
solid
: > black; padding: 2px">text box info</span>
: >
: > will render the word welcome, and then a box containg
the
: > phrase 'text box info'
: >
: >
: >
: >
message
: >
: > :I want to display some text in a box with a scroll bar.
I
: > am using a Text
: > : Area form. But I don't want a user to be able to
click
: > into the box or type
: > : in it. It is just to display a bunch of text. They
do
: > need to use the
: > : scroll bar. How can I prevent users from clicking
into
: > the box or editing?
: > : (Even though the changes aren't saved, I still don't
want
: > the user in the
: > : box).
: > :
: > : Thanks.
: >
: >
: >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top