473,385 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 2198
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.