473,388 Members | 1,220 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,388 software developers and data experts.

CheckBox Question...Please Help...

Hi Guys,

I have these series of checkboxes. Whenever any of them are unchecked, I
want to display a warning, asking the user to confirm if he really wants to
do that. I have added an attribute, to each checkbox, which displays that
confirmation box, but I want it only displayed when the checkbox is
unchecked, not when it is checked. How can I acheive this ?

I'd appreciate valuable feedback on this.

Thanks,

Irfan
Nov 19 '05 #1
2 1151
I have few questions before I answer something

Are these CheckBoxes in a grid ?

or these created OTF(On The Fly) dynamically on the form?
one solution could be,

Register client side script to the Checkbox control which will make sure
that check box has changed its state from checked to unchecked and during
this time display warning message.

"Irfan Akram" wrote:
Hi Guys,

I have these series of checkboxes. Whenever any of them are unchecked, I
want to display a warning, asking the user to confirm if he really wants to
do that. I have added an attribute, to each checkbox, which displays that
confirmation box, but I want it only displayed when the checkbox is
unchecked, not when it is checked. How can I acheive this ?

I'd appreciate valuable feedback on this.

Thanks,

Irfan

Nov 19 '05 #2
Irfan,

I assume that you added an onClick event as the attribute, which would be
correct. Have the onClick call an event that checks the state of the
checkbox before doing the confirm(). Check out the example at the bottom of
this page: http://www.javascriptkit.com/jsref/checkbox.shtml#e1

Ian Suttle
http://www.IanSuttle.com

"Irfan Akram" wrote:
Hi Guys,

I have these series of checkboxes. Whenever any of them are unchecked, I
want to display a warning, asking the user to confirm if he really wants to
do that. I have added an attribute, to each checkbox, which displays that
confirmation box, but I want it only displayed when the checkbox is
unchecked, not when it is checked. How can I acheive this ?

I'd appreciate valuable feedback on this.

Thanks,

Irfan

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Shufen | last post by:
Hi, I'm a newbie that just started to learn python, html and etc. I have some questions to ask and hope that someone can help me on. I'm trying to code a python script (with HTML) to get...
6
by: Rabel | last post by:
I have a shopping cart that I am having a few problems with. I am mostly a flash developer with basic if not little javascript knowledge, I need for my checkout to have a checkbox that if clicked...
4
by: Matrixreloadedth | last post by:
How to change disable color of Checkbox??? I have a checkbox with forecolor in red but when i disable by set Enable properties to false forecolor is changed to gray color but i don't want it. how...
34
by: clinttoris | last post by:
Hello Experts, I have been told to post this in the Javascript forum as I want to do this client side just before my form gets submitted. Once the user clicks the submit button a javascript...
3
by: chiku1523 | last post by:
Hi, Please find the following code. In function setAnswers, I am looping with each question. I have inner loop, which is looping for each answers of the questions. If any of the answer for question...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
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,...
0
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...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.