470,594 Members | 1,447 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

enabling and disabling list boxes

I have a program where I have to enable or disable a list box based upon a
radio button. Is there an "enabled" property on select boxes?
Dec 26 '05 #1
7 2069
John Meyer wrote:
I have a program where I have to enable or disable a list box based
upon a radio button. Is there an "enabled" property on select boxes?


No, but there is a boolean `disabled' property.
PointedEars
Dec 26 '05 #2


John Meyer wrote:
I have a program where I have to enable or disable a list box based upon a
radio button. Is there an "enabled" property on select boxes?


Most HTML form controls have an attribute named disabled
<http://www.w3.org/TR/html4/interact/forms.html#h-17.6>
which is scripted as the disabled property in the object model:
<http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-79102918>

Netscape 4 does not support disabling of any form controls.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Dec 26 '05 #3
Martin Honnen wrote:

Most HTML form controls have an attribute named disabled
<http://www.w3.org/TR/html4/interact/forms.html#h-17.6>
which is scripted as the disabled property in the object model:
<http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-79102918>

Netscape 4 does not support disabling of any form controls.


Thanks for the help guys. I don't use JavaScript all that often: if it's
PHP, I'm on it, but JavaScript, I still have to go to the manuals.
Dec 26 '05 #4


John Meyer wrote:
Thanks for the help guys. I don't use JavaScript all that often: if it's
PHP, I'm on it, but JavaScript, I still have to go to the manuals.


If you want you can use PHP in IE/Win as a client-side scripting
language but I think that does not help you. You need to learn the
object models and APIs the browsers expose, whether you use and know
JavaScript or any other language.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Dec 26 '05 #5
Martin Honnen said the following on 12/26/2005 12:50 PM:


John Meyer wrote:
Thanks for the help guys. I don't use JavaScript all that often: if it's
PHP, I'm on it, but JavaScript, I still have to go to the manuals.

If you want you can use PHP in IE/Win as a client-side scripting
language but I think that does not help you. You need to learn the
object models and APIs the browsers expose, whether you use and know
JavaScript or any other language.


Do you happen to have a URI that explains how to enable it in IE6? The
last URL I had - <URL:
http://www.sitepoint.com/blogs/2004/...rnet-explorer/ - doesn't work for me in IE6 even when I hunt down the .dll file


<URL: http://www.thomas-schilz.de/MozPHP/README.html >

Shows how to do the equivalent (or close to it) in Mozilla based browsers.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 26 '05 #6


Randy Webb wrote:

If you want you can use PHP in IE/Win as a client-side scripting
language but I think that does not help you.
Do you happen to have a URI that explains how to enable it in IE6? The
last URL I had - <URL:
http://www.sitepoint.com/blogs/2004/...rnet-explorer/
> - doesn't work for me in IE6 even when I hunt down the .dll file


I have never done it for PHP itself but the Microsoft architecture
allows for other Active scripting engines, I have tested that with some
Windows Perl some years ago. It is mainly meant to allow Windows Script
Host automation with other languages than JScript and VBScript that
Microsoft provides but with that Perl installation I had you could then
also uses Perl as a client-side scripting language in HTML documents in IE.
And PHP 5 as an ActiveScript extension on Windows
<http://www.php.net/manual/en/install.windows.activescript.php>
As said I have never tried that but my understanding of that script
engine architecture is that having and registering that dll as described
will give you "PHPScript" support in ASP, WSH and in IE too.

Sorry if it does not work for you, my sentence above was mainly meant as
a theoretical argument to make it clear that knowledge of a certain
programming language does not necessarily imply you can then directly
master any framework or API or object model that programming language
provides access to.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Dec 27 '05 #7
Martin Honnen said the following on 12/27/2005 9:46 AM:


Randy Webb wrote:

If you want you can use PHP in IE/Win as a client-side scripting
language but I think that does not help you.


Do you happen to have a URI that explains how to enable it in IE6? The
last URL I had - <URL:
http://www.sitepoint.com/blogs/2004/...rnet-explorer/
> - doesn't work for me in IE6 even when I hunt down the .dll file

I have never done it for PHP itself but the Microsoft architecture
allows for other Active scripting engines, I have tested that with some
Windows Perl some years ago. It is mainly meant to allow Windows Script
Host automation with other languages than JScript and VBScript that
Microsoft provides but with that Perl installation I had you could then
also uses Perl as a client-side scripting language in HTML documents in IE.
And PHP 5 as an ActiveScript extension on Windows
<http://www.php.net/manual/en/install.windows.activescript.php>
As said I have never tried that but my understanding of that script
engine architecture is that having and registering that dll as described
will give you "PHPScript" support in ASP, WSH and in IE too.


Thank you Martin. I had tried it before and couldn't get it to work
properly for me in IE. Never tried it in Mozilla even though I have the
reference page that explains how to do it. My main interest in it isn't
to try to use PHP as a client-side language per se but to try to use it
to test PHP scripts without having to run a server locally.

I will give it a whirl this weekend :)

<snip>

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

Dec 28 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Cillies | last post: by
2 posts views Thread by HumptyDumpty | last post: by
2 posts views Thread by adeelanjum2001 | last post: by
1 post views Thread by hecsan07 | last post: by
3 posts views Thread by Giannis Papadopoulos | last post: by
2 posts views Thread by dougawells | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.