473,545 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tri-State Check Box

I need to make a tri-state check box. (It's values will be off,
checked-always on, or 1-run once)

Would I be correct in assuming the best way to do this is to make some kind
of custom control that displays a "checkbox". The control would have JS in
it to change a graphic image that represents the box. If this is the case,
how would I read in the selected value once the form is posted? I'm
planning on having a couple on the same form and I really don't want to
autopost when each box is clicked on...too much overhead...

Thanks.

-Rob T.
Nov 18 '05 #1
2 2219
Use the JS to set a hidden field with an appropriate value.

-Cam

Rob T wrote:
I need to make a tri-state check box. (It's values will be off,
checked-always on, or 1-run once)

Would I be correct in assuming the best way to do this is to make some kind
of custom control that displays a "checkbox". The control would have JS in
it to change a graphic image that represents the box. If this is the case,
how would I read in the selected value once the form is posted? I'm
planning on having a couple on the same form and I really don't want to
autopost when each box is clicked on...too much overhead...

Thanks.

-Rob T.

Nov 18 '05 #2
Good idea...I could program the control to create a hidden field (with a
unique ID) for each checkbox...then just have a little routine to loop
through all the Request.Form items....

Thanks.

"cameron" <ca************ ****@appdepot.c om> wrote in message
news:On******** ******@TK2MSFTN GP11.phx.gbl...
Use the JS to set a hidden field with an appropriate value.

-Cam

Rob T wrote:
I need to make a tri-state check box. (It's values will be off,
checked-always on, or 1-run once)

Would I be correct in assuming the best way to do this is to make some kind of custom control that displays a "checkbox". The control would have JS in it to change a graphic image that represents the box. If this is the case, how would I read in the selected value once the form is posted? I'm
planning on having a couple on the same form and I really don't want to
autopost when each box is clicked on...too much overhead...

Thanks.

-Rob T.

Nov 18 '05 #3

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

Similar topics

0
2265
by: Christian Hammers | last post by:
Hello I would like to call a unix shellscript from within a PHP script and - write data to its STDIN - read data from its STDOUT *and* STDERR - get its exit code afterwards proc_open seems to be the right thing to use but I have the problem that the called program gives >8kb data on both stdout/stderr back which causes my PHP script to...
0
1111
by: Mitch Amiano | last post by:
Tri-XML 2005 is on for July 28-30th, in Raleigh, NC. The conference index is at <http://www.trixml.org/confindex.shtml>. Curious readers can get an idea of the conference from a review of Tri-XML 2004 at <http://home.agilemarkup.com/article8.2>. The Tri-XML Conference is a three-day conference in Research Triangle Park, NC. Begun by a...
7
4722
by: Lyle Fairfield | last post by:
I suppose something like this may have been posted before. I am unaware of it. It's intended to duplicate the gradient filter that MS provides in their manifestation of CSS. Yes, I know it creates a gazillion labels. ESPECIALLY I KNOW it could Screw Up Your Form, so PLEASE, make a few hundred safety copies before you try this at all. Yes, I...
11
1960
by: Kevin D. Quitt | last post by:
At least, when you're hungry. -- #include <standard.disclaimer> _ Kevin D Quitt USA 91387-4454 96.37% of all statistics are made up Per the FCA, this address may not be added to any commercial mail list
2
1587
by: spleen | last post by:
Hiya, Im a newbie to C so please excuse my ignorance... Ok, so I have several C files, with my functions in, one has main in of course! and I have 2 structs as outside of the funtions (therefore global?) in one of the files. I can pass my information into the structs with no major difficulties, that was easy! anyway now im trying to...
2
335
by: Alexander Hunziker | last post by:
Hello everybody, I'm trying to program a linked list, but unfortunately it segfaults when I run the program. The code is basically the same as one can find in several places in the internet. With gdb I found out, that my root->next points to some strange memory area instead of where it should. The program segfaults in the while loop in...
0
1443
by: 455 | last post by:
Hello all. Sorry if this question gets a little long. I've been having real trouble with this problem mostly because I can't get a solid piece to start from. I'm new to C# (was previously a VB6er) and need some help. So the problem is: I have a class, CoreExecutor that has a few methods on it. One of the methods is Execute(). This...
12
10111
by: freqzz | last post by:
i got a little proble to implement memory allocation using array. Here's the situation, i got a sample data stored in textfile: tri1 (1,7,1) (2,8,2) (3,7,3) tri2 (2,8,2) (5,7,5) (3,7,3) tri3 (5,7,5) (3,5,2) (3,7,3) tri4 (3,7,3) (3,5,2) (1,7,1) tri5 (5,7,5) (5,5,7) (3,5,2) it is a triangulation table.. so later i'll plot it as a...
8
4996
by: freqzz | last post by:
#include <windows.h> #include <gl\gl.h> #include <gl\glut.h> #include <stdlib.h> #include <math.h> #include <vector> #include <iostream.h> #include <fstream.h> #include <stdio.h>
13
1763
by: Cell | last post by:
I have structures like this in my program - typedef vector vectorstruct { double x, y,z; } vector; typedef struct verticesstruct { vector v;
0
7486
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7416
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7932
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7442
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7776
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5347
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3456
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
729
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.