PDA

View Full Version : Read-Only Div Block


codeexploiter
06-04-2007, 11:41 AM
Hi all,

Is it possible to achieve a pure read-only div block. As you are aware contentEditable and unselectable works only in IE but I am looking for a method which is compatible with both IE and Mozilla Firefox.

Thanks in advance.

Regards

CodeExploiter

jscheuer1
06-04-2007, 04:31 PM
Division elements on an HTML page are normally read-only.

codeexploiter
06-05-2007, 04:59 AM
Division elements on an HTML page are normally read-only.

I think I haven't provided one valuable information. I need a read-only <div> block within a rich-text editor which is based on JavaScript. I want to create a section which is not editable for the users of the editor.

<div contentEditable='false' unselectable='true'></div>

The above code working as I wanted in IE. I am looking for a method which will work both in IE and Firefox or even a Firefox based method will do good for me.