CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 readonly property not working

Print topic Send  topic

Author Message
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
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.