Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making TextArea Readonly (IE Works, NS Wont, Figures) 2

Status
Not open for further replies.

Karl Blessing

Programmer
Feb 25, 2000
2,936
US
I'd like to start off by saying that NS should just die (it's a developer's nightmare) in any case, I still have to design/develop for both. Here is the problem.

I want to make a textarea readonly
this is pretty easy and typically done by

<Textarea readonly ....> Some Text </Textarea>

this works just fine in IE, but in NS, I am still able to place my cursor in it, and change stuff, add stuff, etc, and submit it changed.

I even tried the XHTML method of doing readonly=&quot;readonly&quot; , and yet NS still wont lock the textarea.

Any clues?, you know it might be helpful if someone created some sort of reasources, of the common attributes that work perfectly in IE, but cost an arm and a leg to investigate in NS. Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
howabout using a focus remover like this:

onFocus=&quot;someOtherElement.focus();&quot;

a bit of a hack, but I think it would do the trick.

:)
 
<textarea onfocus=&quot;this.blur()&quot;></textarea> luciddream@subdimension.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top