/    Sign up×
Community /Pin to ProfileBookmark

Is there anyway to get a scrolling textbox that is read only? so the person cant modify wats in it?

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@Mr_JMay 22.2005 — Try adding [B]readonly[/B] to the textbox
Copy linkTweet thisAlerts:
@CharlesMay 22.2005 — <textarea readonly>Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem.</textarea>

<div style="border:solid 1px #000; height:2em; overflow:auto; width:11em">Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum.</div>
Copy linkTweet thisAlerts:
@jmaresca2005May 23.2005 — <textarea readonly>text here</textarea>

<div style="border:solid 3px #000; height:3em; overflow:auto; width:12em">est here</div>
Copy linkTweet thisAlerts:
@NogDogMay 23.2005 — Use the textarea option if it is part of a form containing read-only data to be submitted as part of that form. Otherwise use the styled div option using "overflow:" with either the "auto" or "scroll" option (more info at http://www.w3.org/TR/CSS21/visufx.html#overflow).
Copy linkTweet thisAlerts:
@CharlesMay 23.2005 — Use the textarea option if it is part of a form containing read-only data to be submitted as part of that form. [/QUOTE]Why then is it valid HTML to do otherwise?
Copy linkTweet thisAlerts:
@NogDogMay 23.2005 — Why then is it valid HTML to do otherwise?[/QUOTE]
To clarify, I'm not so much concerned with whether you [i]can[/i] use a textarea outside a form. I guess I just feel it's more semantically meaningful if you don't. The specification of the textarea element [i]is[/i] in section 17 of the 4.01 spec., which happens to be entitled "Forms". But I ain't gonna lose any sleep if anyone uses it outside a form, though I see no reason to do so. ?
Copy linkTweet thisAlerts:
@JordanwebauthorMay 24.2005 — thanks guys
×

Success!

Help @Jordanweb spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...