Frank Rocco
|
Posted: 06/22/2001, 12:03 PM |
|
Hello the following code is not setting a textarea as readonly in CodeCharge
1.2. The disable works.
<SCRIPT Language="JavaScript">
document.Bugs.contact_id.disabled = true;
document.Bugs.bug_desc.readonly = true;
</SCRIPT>
What is wrong?
Thanks in advance.
Frank
|
|
|
Frédéric Malenfant
|
Posted: 06/22/2001, 12:27 PM |
|
is your disable = true working too? if no I think that in ie4 and previous
and maybe netscape I don't know doesn't support disabled property, I don't
know if readonly property is like the disable property but those properties
are recent and if you use an old(ie4) or strange (netscape) browser maybe
they will not work because they are not existing on those browsers... maybe
that's your problem but if your disabled = true work, they it will becomes
readonly you can't modify a disabled HTML text field, it is grayed and not
accessible. you will not need the readonly property.
"Frank Rocco" <farocco@hotmail.com> wrote in message
news:9h04pr$1k7$1@news.codecharge.com...
> Hello the following code is not setting a textarea as readonly in
CodeCharge
> 1.2. The disable works.
>
> <SCRIPT Language="JavaScript">
> document.Bugs.contact_id.disabled = true;
> document.Bugs.bug_desc.readonly = true;
> </SCRIPT>
>
> What is wrong?
>
> Thanks in advance.
> Frank
>
>
|
|
|
Frank Rocco
|
Posted: 06/22/2001, 12:52 PM |
|
The disable is working. However since it is a memo field, the user cannot
scroll down when disabled is true. However readonly allows this.
I'm using IE5.5
I did a test example using another editor and it worked.
Not sure why it is not working in CodeCharge.
Thanks
Frank
"Frédéric Malenfant" <frederic.malenfant@cgi.ca> wrote in message
news:9h067r$373$1@news.codecharge.com...
> is your disable = true working too? if no I think that in ie4 and previous
> and maybe netscape I don't know doesn't support disabled property, I don't
> know if readonly property is like the disable property but those
properties
> are recent and if you use an old(ie4) or strange (netscape) browser maybe
> they will not work because they are not existing on those browsers...
maybe
> that's your problem but if your disabled = true work, they it will becomes
> readonly you can't modify a disabled HTML text field, it is grayed and not
> accessible. you will not need the readonly property.
>
> "Frank Rocco" <farocco@hotmail.com> wrote in message
>news:9h04pr$1k7$1@news.codecharge.com...
> > Hello the following code is not setting a textarea as readonly in
> CodeCharge
> > 1.2. The disable works.
> >
> > <SCRIPT Language="JavaScript">
> > document.Bugs.contact_id.disabled = true;
> > document.Bugs.bug_desc.readonly = true;
> > </SCRIPT>
> >
> > What is wrong?
> >
> > Thanks in advance.
> > Frank
> >
> >
>
>
|
|
|
|