473,466 Members | 4,879 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Uneditable

Here is a simple one. How do you make a text field uneditable?

Shelly
Jul 21 '05 #1
9 1967
<input type="text" readonly>, if I recall correctly.

Jul 21 '05 #2
*
<input type="text" readonly="readonly" />
http://www.w3schools.com/tags/tag_input.asp

Jul 21 '05 #3
<input type="text" disabled value="TEXT HERE!"> That will also work.

Jul 21 '05 #4
I noticed that Message-ID:
<11**********************@g14g2000cwa.googlegroups .com> from
up*********@gmail.com contained the following:
<input type="text" disabled value="TEXT HERE!"> That will also work.


Excuse me, but what's the point of a text box that you can't edit? Why
not just echo the value to the screen?
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 21 '05 #5
Keep in mind that a the value of a disabled field doesn't get posted on
submit where as a that of a readonly field does. Disabling a textarea
also disables its scroll-bar(s).

Jul 21 '05 #6
It's a way to show the user that something on-screen was editable but
no longer is.

Jul 21 '05 #7

"Geoff Berrow" <bl******@ckdog.co.uk> wrote in message
news:g5********************************@4ax.com...
I noticed that Message-ID:
<11**********************@g14g2000cwa.googlegroups .com> from
up*********@gmail.com contained the following:
<input type="text" disabled value="TEXT HERE!"> That will also work.


Excuse me, but what's the point of a text box that you can't edit? Why
not just echo the value to the screen?


Example: I create an internal "mail form". I preset the destination and
the sender. I don't want those changed in any way as they are going to and
from usernames. I want the "Send To:" and "From:" to look like text boxes
since the "Subject:" is a text box (and the message is a text area).

It is just aesthetics.

Shelly
Jul 21 '05 #8
SOR
<comp.lang.php , Geoff Berrow , bl******@ckdog.co.uk>
<g5********************************@4ax.com>
<Tue, 19 Jul 2005 20:13:38 +0100>
<input type="text" disabled value="TEXT HERE!"> That will also work.


Excuse me, but what's the point of a text box that you can't edit? Why
not just echo the value to the screen?


Must thank shelly for asking the question as I wanted to know that .

I have a use for a text box you cant edit on
www.phpguestbook.co.uk/phpgb_sign_guestbook.php for the anti bot
security code .

Just a quick method of displaying and passing both the security code and
the typed in answer .

Well you did ask :-)
Jul 22 '05 #9
I noticed that Message-ID:
<MP************************@no-cancel.newsreader.com> from SOR contained
the following:

I have a use for a text box you cant edit on
www.phpguestbook.co.uk/phpgb_sign_guestbook.php for the anti bot
security code .

Just a quick method of displaying and passing both the security code and
the typed in answer .

Well you did ask :-)


Yes, but why does it have to be in a text box?

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Mike MacSween | last post by:
There doesn't seem to be a way to do this. The Access security model seems to be based around allowing the users to read/alter design of the form (where reading includes editing the data) I want...
3
by: justin.creasy | last post by:
I was wondering if anyone knew how to make a comboBox that cannot be edited, but works in every other way. I have tried setting the <comboBox name>.Enabled to false, but then I can't use the...
0
by: SixStringSlaya | last post by:
I am trying to write a text to a cell in the Detailsview after the user clicks on New. When I do this, the Detailsview makes that cell uneditable. How do I get that cell back into the edit mode...
3
by: Mike P | last post by:
Is it possible to make an editable gridview so that certain rows are editable and other are not editable, dependent upon a value in one of the rows columns? *** Sent via Developersdex...
10
by: jpatchak | last post by:
Hello all, I recently tried upsizing a DB with the Access Upsizing Wizard. I ran into the standard problems with datatypes and have to rebuild some queries that didn't get upsized. I am having a...
1
oll3i
by: oll3i | last post by:
How to make a JTextField disabled after some data has been entered into it? and then make it editable again when a button is clicked?
5
by: manishamca | last post by:
i want to make the chociebox uneditable that is the option selected shuld not change after we click a button... plz help me. Thanx in advance
2
by: premMS143 | last post by:
Hi Everybody, I've created a power point presentation which contains COmputer Fundamentals. Anyone with basic computer knowledge can learn MS-Office with the help of this presentation. That one...
4
by: premMS143 | last post by:
Could anybody help me how to make PPT file Uneditable, so that users can only read that PPT file. I already converted it to pps & make a package usoing 'Package for CD". But still it can be...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.