Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
GaryNY #1
Populating "checkboxes" - need help...
I have the following task:
I display a CF form with several checkboxes (they control which columns to
extract from a database).
Initially I can display them as checked or non-checked.
How to add two more checkboxes to "check" or "uncheck" them immediately on the
screen when a user clicks ?
I have a CF solution, but it requires an additional form (to transfer to).
Anybody could suggest an elegant solution ?
Will appreciate a lot !
Gary.
GaryNY Guest
-
Proj cannot run on LCDS 2.6 ES due to "Unable to resolveresource bundle "datamanagement" for locale "en_US"
hi, all, We have developped an application on Flex Build 3 (run successfully), but failed when we try to deploy it on Tomcat with LCDS 2.5 ES... -
CheckBoxes in DataGrids-- the "checked" attribute not correct after posting page?
Hi everyone, I'm using a DataGrid with TemplateColumns. My DataGrid is located in a cell of an asp:Table. I did this so it's positioned... -
CFINPUT type="radio" w/ "value" requires "label"
On a Flash form, when you specify type='radio' and value='whatever', the value of the 'value' attribute will be displayed as a label if no 'label'... -
dr("field").toString returns "400.0000" instead of "400"
I have just installed VS.NET 2003 on my computer. I have a project that I have been developing on VS.NET 2002. I haven't upgraded this project to... -
"Start" "Program" "Menu" list is empty
For what ever reason my list of installed programs in my "Start" "Programs" menu is empty. Anyone know how to restore the list. Thanks for your... -
jorgepino #2
Re: Populating "checkboxes" - need help...
[url]http://search3.webfeat.org/seflinds.html[/url]
I hope this help
jorgepino Guest
-
GaryNY #3
Re: Populating "checkboxes" - need help...
Sorry, did not understand - this is relatively big JavaScript page.
I thought there is a CF solution with a small JS function (well may be).
May be there is one ?
GaryNY Guest
-
Neculai Macarie #4
Re: Populating "checkboxes" - need help...
> I have the following task:
to> I display a CF form with several checkboxes (they control which columnson the> extract from a database).
> Initially I can display them as checked or non-checked.
> How to add two more checkboxes to "check" or "uncheck" them immediatelyI'm not sure if I understand correctly, but you want to simulate a click on> screen when a user clicks ?
2 additional checkboxes when the user checks a specific one ?
See if this helps:
<input type="checkbox" name="initial_checkbox"
onclick="if(this.checked){this.form.additional1.ch ecked=true;this.form.addit
ional2.checked=true;}">
--
<mack />
Neculai Macarie Guest
-
dempster #5
Re: Populating "checkboxes" - need help...
This has nothing to do with ColdFusion. You can use JavaScript to check or
uncheck a group of checkboxes. The code example below will loop through a set
of checkboxes and either check or uncheck all of them.
-Paul
<SCRIPT LANGUAGE="JavaScript">
function CheckAll(ca) {
for (var i = 0; i < document.myform.mybox.length; i++) {
if (ca.checked)
{document.myform.mybox[i].checked = true;}
else
{document.myform.mybox[i].checked = false;}
}
}
</SCRIPT>
<FORM NAME="myform">
<INPUT TYPE="checkbox" NAME="checkall" onClick="CheckAll(this)">Check all
<INPUT TYPE="checkbox" NAME="mybox" VALUE="A">Box A
<INPUT TYPE="checkbox" NAME="mybox" VALUE="B">Box B
<INPUT TYPE="checkbox" NAME="mybox" VALUE="C">Box C
dempster Guest



Reply With Quote

