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. 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.
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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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
|
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...
| |
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...
|
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...
|
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...
|
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>
|
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;
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |