473,549 Members | 2,408 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 1592
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
2268
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
1961
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
1588
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
4997
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
1768
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
7736
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7500
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
7827
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...
0
6066
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5385
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
5110
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3514
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3494
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
783
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.