472,954 Members | 1,716 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,954 software developers and data experts.

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 2182
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Old Lady | last post by:
Hi, I need help! I have a SELECT/OPTION list. My goal is to have a TEXT input field in a form that is normally disabled, but it should become enabled when the user select one predefined OPTION....
5
by: Cillies | last post by:
Hi All, This message is a continuation of an earlier post, so please accept my apologies as I believe I would get a better response this way. Problem: I have 4 combo boxes which I want to...
2
by: HumptyDumpty | last post by:
Does anyone know if there is a problem with re-enabling the Screen Saver after it has been disabled programmatically. I am using the SystemParametersInfo function within User32.dll, and have...
2
by: adeelanjum2001 | last post by:
i am using radiolist box control in my page. when i disable radiolist box when page is displayed first time, that is not ispostback, and when i try to enable it with my javascript code afterwards,...
1
by: hecsan07 | last post by:
I have a form that works on two modes. One of them is for the user to view the data. The other is for the user to enter/update the data. I want the user to be able to move from viewing the data in...
3
by: Giannis Papadopoulos | last post by:
I want to create a macro that it must be ignored when NDEBUG is defined. The macro I've created is #ifndef NDEBUG # define ERROR_MESSAGE(s) fprintf(stderr, "%s(): %s\n", __func__, (s)); #else...
2
by: dougawells | last post by:
Hi- I'm wanting to have a set of radio buttons disabled when a form is displayed, then if they check another specific radio button, those would become enabled. I've tried setting it via...
4
by: questionit | last post by:
Hi I have 2 tick boxes (say A and B) and a list box. I want following, can anyone help If tick-box A is checked: the list box will show all of its values If tick-box B is checked: the list...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.