🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: a2000.html
Article #148

Re: readonly in forms

#148
From: Jukka Korpela
Date: Wed, 26 Apr 2000 00:00
29 lines
1995 bytes
On Tue, 25 Apr 2000 09:20:18 GMT, "stephane lambotte"
<lambotte@usa.net> wrote:

>I'd like to define a html form.
>In this some text box can be edited by the viewer, but other can't .

Sorry that does not parse. Who is "other"?

>Is there any readonly attributes that can be used on forms.

Yes, the attribute is actually named readonly.

It is supported by IE 4+ but not by most other browsers yet.

The interesting question is why you would include a form field, which
is essentially an input field, and prevent user input via it. The
answer to the question whether you should really use readonly or
something else and what you should do about browsers that don't
support it seriously depend on what you are actually aiming at.

>Or can I do this via a Jscript.

That's a different question and best discussed in
comp.lang.javascript, but you might wish to check
http://www.hut.fi/u/jkorpela/forms/readonly.html for the basics first.

-- 
Yucca, http://www.hut.fi/u/jkorpela/
Audiatur et ALTera pars.
Technical Details
Message-ID: <ctrdgsgjroplp4st9nkukm7d3f60mc8806@4ax.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <mrdN4.4$Id6.587@nreader2.kpnqwest.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 106f62,c55693fff9c9c20d
X-Google-Attributes: gid106f62,public
X-Google-Thread: 10f4ff,c55693fff9c9c20d
X-Google-Attributes: gid10f4ff,public
X-Google-Thread: f4f4a,c55693fff9c9c20d
X-Google-Attributes: gidf4f4a,public
X-Google-Thread: 10f398,c55693fff9c9c20d
X-Google-Attributes: gid10f398,public
From: Jukka Korpela <Jukka.Korpela@hut.fi>
Subject: Re: readonly in forms
Date: 2000/04/26
Message-ID: <ctrdgsgjroplp4st9nkukm7d3f60mc8806@4ax.com>
X-Deja-AN: 615908818
Content-Transfer-Encoding: 7bit
References: <mrdN4.4$Id6.587@nreader2.kpnqwest.net>
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@nntp.hut.fi
X-Trace: nntp.hut.fi 956757741 14441 130.233.221.38 (26 Apr 2000 14:02:21 GMT)
Organization: Helsinki University of Technology
Mime-Version: 1.0
NNTP-Posting-Date: 26 Apr 2000 14:02:21 GMT
Newsgroups: a2000.html,alt.discuss.html,alt.html,alt.html.dhtml