I have a function (below) which is executed upon the clicking of a
checkbox called 'yeschk'. This function works as expected for FireFox,
i.e., the 4 widgets (nametext, emailtext, addme, and removeme) disable
or enable immediately when the 'yeschk' checkbox is clicked. But in IE,
this doesn't happen immediately. Instead, the mouse has to be clicked
somewhere else on the page, first. So in IE, to disabled/enable the 4
widgets, I need to click the 'yeschk' checkbox, then click anywhere else
except 'yeschk'. I don't understand why this is, and it is aggravating.
Is there a known trick that I could implement that would cause IE to
enable/disable the 4 widgets immediately on a 'yeschk' click?
function chkboxChange() {
document.email.nametext.disabled = !document.email.yeschk.checked;
document.email.emailtext.disabled = !document.email.yeschk.checked;
document.email.addme.disabled = !document.email.yeschk.checked;
document.email.removeme.disabled = !document.email.yeschk.checked;
}
Mark 2 1594
Mark wrote: I have a function (below) which is executed upon the clicking of a checkbox called 'yeschk'. This function works as expected for FireFox, i.e., the 4 widgets (nametext, emailtext, addme, and removeme) disable or enable immediately when the 'yeschk' checkbox is clicked. But in IE, this doesn't happen immediately.
Use the onclick instead of the onchange event handler.
Robert wrote: Use the onclick instead of the onchange event handler.
How'd you know I was using onChange()? Your suggestion worked! You
must have had the same problem I did. Thanks for the tip!
Mark This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jane Austine |
last post by:
As you add more items, say text lines, in Text widget, it gets too
slow and almost impractical to use on. Take idle for example. If the
text gets bigger(e.g. print...
|
by: Phil Schmidt |
last post by:
I'm trying to make a custom entry widget, as in the code that follows.
There are two problems I'm trying to fix:
1) I would like the widget to behave as myEntry.Escape() does now,
except that it...
|
by: Askari |
last post by:
Hi,
Do I can unbind the initial bind on basic widget? (ex.: the basic widget
Text have the bind "<Control-a>" for the return to the first caracter of
the line; but me I don't want this!)
I try ...
|
by: William Gill |
last post by:
I have a Tkinter (frame) widget that contains several other frame
widgets, each containing entry widgets. In the parent frame I have a
'save' button that is initially disabled. As it is now, each...
|
by: ecpbm765 |
last post by:
Hey,
I am helping to develop a project that displays images based on user
input. One possible way of implementing this is via a widget that
when it is run, would read in the users input from an...
|
by: rahulnag22 |
last post by:
Hi,
If I have a button widget
w = Button(root, text = "Button", state = 'disabled')
How can I get the value of option 'state' from the widget 'w'.
I want something like --
print w.state ...
|
by: buntyindia |
last post by:
Hi,
I am using the following Calendar widget script ....
http://img169.imageshack.us/img169/5866/dateof5.gif
http://www.totallysmartit.com/examples/calendar/simple.asp
I am facing a...
|
by: goldtech |
last post by:
I thought the "DISABLED" made it so I could not edit it. But it also
makes it so I can not scroll down. If you make the window smaller than
the content then try to put a cursor in there to use...
|
by: maya |
last post by:
hi,
this site, http://www.mta.info/lirr/ has a "google translate" widget
(on left column); when you click on drop-down some languages don't
display properly (encoding problem), this problem...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |