This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
How do you lock a textfield so that javascript can change the value in the textfield, but a user cannot?
Dave Vick
Ranch Hand
Joined: May 10, 2001
Posts: 3244
posted
0
Lauren Set the textfield to readonly <INPUT TYPE="text" NAME="filedName" value=whatever readonly> hope that helps Dave
Dave
Lauren Pender
Greenhorn
Joined: Jun 15, 2001
Posts: 5
posted
0
Thanks Dave!
xavier romea
Ranch Hand
Joined: Jun 28, 2001
Posts: 37
posted
0
hi, The readonly option only works for IE, doesn't it? I tried on Netscape 4.7 and it doesn't work. I used the onFocus option of the input tag and set: onFocus="this.blur()"
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.