Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Disable a text box & still allow scrolling?

Reply
Thread Tools

Disable a text box & still allow scrolling?

 
 
harry
Guest
Posts: n/a
 
      08-01-2004
some data I have is quite a bit longer than the displayed text box length,
some users can only view this data but set the disabled/readonly attribute
prevents focus on the field so you can't scroll!

is this possible to allow focus & scrolling but without any editing? -

thanks

harry


 
Reply With Quote
 
 
 
 
The Doormouse
Guest
Posts: n/a
 
      08-01-2004
"harry" <> wrote:

> is this possible to allow focus & scrolling but without any editing?


You can use CSS to display text in a scrollable box, with no editing.

The Doormouse

--
The Doormouse cannot be reached by e-mail without her permission.
 
Reply With Quote
 
 
 
 
harry
Guest
Posts: n/a
 
      08-01-2004
any ideas as to how I would do this?

thanks again - sorry but not the most experienced in CSS!

"The Doormouse" <> wrote in message
news:Xns95387459ED904doormouseattnet@68.12.19.6...
> "harry" <> wrote:
>
> > is this possible to allow focus & scrolling but without any editing?

>
> You can use CSS to display text in a scrollable box, with no editing.
>
> The Doormouse
>
> --
> The Doormouse cannot be reached by e-mail without her permission.



 
Reply With Quote
 
harry
Guest
Posts: n/a
 
      08-01-2004
all I was trying to do was to have a read only text box that could receive
focus & the user can use the arrow/home/end keys to view all the contents -
why is even the simplest of things always so difficult with web app's?


"harry" <> wrote in message
news:jDaPc.12598$...
> any ideas as to how I would do this?
>
> thanks again - sorry but not the most experienced in CSS!
>
> "The Doormouse" <> wrote in message
> news:Xns95387459ED904doormouseattnet@68.12.19.6...
> > "harry" <> wrote:
> >
> > > is this possible to allow focus & scrolling but without any editing?

> >
> > You can use CSS to display text in a scrollable box, with no editing.
> >
> > The Doormouse
> >
> > --
> > The Doormouse cannot be reached by e-mail without her permission.

>
>



 
Reply With Quote
 
Toby Inkster
Guest
Posts: n/a
 
      08-01-2004
harry wrote:

> any ideas as to how I would do this?


<div style="height:4em;width:20em;padding:0.5em;margin: 0.5em;border:1px
solid black;overflow:auto;">
But I must explain to you how all this mistaken idea of denouncing
pleasure and praising pain was born and I will give you a complete account
of the system, and expound the actual teachings of the great explorer of
the truth, the master-builder of human happiness. No one rejects,
dislikes, or avoids pleasure itself, because it is pleasure, but because
those who do not know how to pursue pleasure rationally encounter
consequences that are extremely painful. Nor again is there anyone who
loves or pursues or desires to obtain pain of itself, because it is pain,
but because occasionally circumstances occur in which toil and pain can
procure him some great pleasure. To take a trivial example, which of us
ever undertakes laborious physical exercise, except to obtain some
advantage from it? But who has any right to find fault with a man who
chooses to enjoy a pleasure that has no annoying consequences, or one who
avoids a pain that produces no resultant pleasure?
</div>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Reply With Quote
 
Adrienne
Guest
Posts: n/a
 
      08-01-2004
Gazing into my crystal ball I observed "harry" <> writing in
news:KXaPc.12609$:

Top posting fixed - please do not top post in the future

> "harry" <> wrote in message
> news:jDaPc.12598$...
>> "The Doormouse" <> wrote in message
>> news:Xns95387459ED904doormouseattnet@68.12.19.6...
>> > "harry" <> wrote:
>> >
>> > > is this possible to allow focus & scrolling but without any
>> > > editing?
>> >
>> > You can use CSS to display text in a scrollable box, with no
>> > editing.
>> >
>> > The Doormouse
>> >

>> any ideas as to how I would do this?
>>
>> thanks again - sorry but not the most experienced in CSS!


Easily remedied. Have a look at http://www.w3schools.com/css/default.asp

Also http://www.blooberry.com/indexdot/cs...x/position.htm might be
of help.

> all I was trying to do was to have a read only text box that could
> receive focus & the user can use the arrow/home/end keys to view all
> the contents - why is even the simplest of things always so difficult
> with web app's?
>
>


Is the document in question a form? If not you should not be using a form
element to do this. If it is, however, a form, then you can do
<textarea rows="5" cols="10" readonly name="textarea">This is some readonly
text that will be readonly and the user can scroll, and will also be
submitted with the form.</textarea>

http://www.w3.org/TR/html4/interact/...#edef-TEXTAREA

--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
div box questions; float text around a box, fit box to image size Gnarlodious HTML 4 05-05-2010 11:30 AM
text box question, enable scroll bars, disable control Paul ASP .Net 3 09-29-2008 11:23 PM
newbie: allow deny vs deny allow Jeff ASP .Net 2 09-19-2006 02:12 AM
Location element in the Web.config file. Allow System Admin whole directory, allow others specific page Ryan Taylor ASP .Net Security 1 09-09-2004 06:52 PM
Check box and text box disable Jim Javascript 3 06-04-2004 09:15 PM



Advertisments