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

onClick not working in cfform tag

Please help a newb! Any suggestions are appreciated!

My goal is to have all checkboxes=true up to today's month when the "Fiscal Year" checkbox is clicked. Right now, I'm having trouble with the checkbox updating. I haven't even started with the Date=Now(mmmm) function. If you can help with that too, great!

Here's what I have so far:

Expand|Select|Wrap|Line Numbers
  1. <cfform format="flash" name="SearchField" skin="haloorange" height="350" width="400" action="viewRecords_results.cfm">
  2. <cfformgroup type="horizontal" label="Select Month(s)">
  3. <cfinput name="month1" label="January" type="checkbox">
  4. <cfinput name="month7" label="July" type="checkbox">
  5. <cfinput name="month2" label="February" type="checkbox">
  6. <cfinput name="month8" label="August" type="checkbox">
  7. <cfinput name="month3" label="March" type="checkbox">
  8. <cfinput name="month9" label="September" type="checkbox">
  9. <cfinput name="month4" label="April" type="checkbox">
  10. <cfinput name="month10" label="October" type="checkbox">
  11. <cfinput name="month5" label="May" type="checkbox">
  12. <cfinput name="month11" label="November" type="checkbox">
  13. <cfinput name="month6" label="June" type="checkbox">
  14. <cfinput name="month12" label="December" type="checkbox">
  15. <cfinput name="fiscal" label="Fiscal Year" type="checkbox"
  16. onClick="(SearchField.month10.checked=true)">
  17. </cfformgroup>
  18. </cfform>
Thanks for looking!
Sep 18 '06 #1
2 2849
steven
143 100+
Please help a newb! Any suggestions are appreciated!

My goal is to have all checkboxes=true up to today's month when the "Fiscal Year" checkbox is clicked. Right now, I'm having trouble with the checkbox updating. I haven't even started with the Date=Now(mmmm) function. If you can help with that too, great!

Here's what I have so far:

Expand|Select|Wrap|Line Numbers
  1. <cfform format="flash" name="SearchField" skin="haloorange" height="350" width="400" action="viewRecords_results.cfm">
  2. <cfformgroup type="horizontal" label="Select Month(s)">
  3. <cfinput name="month1" label="January" type="checkbox">
  4. <cfinput name="month7" label="July" type="checkbox">
  5. <cfinput name="month2" label="February" type="checkbox">
  6. <cfinput name="month8" label="August" type="checkbox">
  7. <cfinput name="month3" label="March" type="checkbox">
  8. <cfinput name="month9" label="September" type="checkbox">
  9. <cfinput name="month4" label="April" type="checkbox">
  10. <cfinput name="month10" label="October" type="checkbox">
  11. <cfinput name="month5" label="May" type="checkbox">
  12. <cfinput name="month11" label="November" type="checkbox">
  13. <cfinput name="month6" label="June" type="checkbox">
  14. <cfinput name="month12" label="December" type="checkbox">
  15. <cfinput name="fiscal" label="Fiscal Year" type="checkbox"
  16. onClick="(SearchField.month10.checked=true)">
  17. </cfformgroup>
  18. </cfform>
Thanks for looking!
onClick="(SearchField.month10.checked=true)" should be

onClick="(SearchField.month10.checked='checked')"
Sep 19 '06 #2
Thanks for the reply!

I couldn't get it to work using your code but I did get the variable to return as "true" using onClick="(SearchField.month10=true)"

The only thing that doesn't happen is the actual check being placed in the box. Not a big deal, since I can instruct my users to not expect it, but it would be nice if I can get it to work. Any ideas?
Sep 19 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: masantha wee | last post by:
Hi all, I am using Firefox and embedding Javascript in html. I understand that we can use mouse events by coding them in the body of html (by creating a button or anything and by adding in the...
5
by: moondaddy | last post by:
I have a <a> element in a datagrid which wraps some asp.net labels. this element also has an onclick event which does not fire in netscape 6 (and perhaps other browsers for all I know...). Below...
6
by: Nx | last post by:
i've got it all working nicely in firefox, but whenever i test it in IE none of the onclick events are triggered. i'm using an xsl to transform an rss feed into a photogallery. when i try to...
1
by: mystickle | last post by:
Hi there! I'm new to ColdFusion so I hope my question makes sense... I have created a blog using ColdFusion, but for some reason when the blog is submitted the blog text within the <textarea>...
0
by: none | last post by:
Hi, I’ve got a problem with my onclick handlers for command buttons being dropped on page render for a popup window. On the opening window, I have several command buttons, and they all have...
0
by: sabian08 | last post by:
Please help a newb! Any suggestions are appreciated! My goal is to have all checkboxes=true up to today's month when the "Fiscal Year" checkbox is clicked. Right now, I'm having trouble with the...
5
by: Magician | last post by:
Hello. I am trying to set the onclick event for images through a function, but the event is triggered as soon the page loads, then will not work when the image is clicked. Can anyone suggest what...
2
by: =?Utf-8?B?TWFyaw==?= | last post by:
I am writing a control and want to handle an OnClick event on the client-side before then conforming to the postback mechanism. I have got the server-side events working for my OnClick event by...
7
by: dmorand | last post by:
I'm having an issue validating that the "Add" button was selected..... <cfform name="NEW_FORM" action="systemSubmit.cfm"> <tr><td colspan=2 align="center"><h4>Submit New System</h4></td></tr>...
4
by: Aaron Gray | last post by:
The following input checkbox onclick via DOM is not working on IE7, FF, or WebKit, but is working on Opera for some strange reason. http://www.aarongray.org/Test/JavaScript/checkbox.html ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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,...
0
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...
0
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...

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.