By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,213 Members | 1,086 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,213 IT Pros & Developers. It's quick & easy.

OT(?) Dynamic java checkbox for use with coldfusion?

P: n/a
Didn't know who to ask, the java experts or the coldfusion experts... so
here it is and my sincerest appologies for the crosspost. I am also going to
crosspost to alt.startrek for good measure. Generally speaking, whenever I
do this the response seems to come from the startrek NG first no matter how
inappropriate the crosspost... go figure.

I'm working on a coldfusion application that asks students whether they have
taken a class, and if so in which semester did they take it and what grade
did they get.

Right now I'm using radio buttons for 'complete' or 'incomplete' and then
two selection menus for semester and grade. This is very clunky looking.
I'd prefer that the "what semester" and "what grade" selection menus would
only appear after the student clicks the "complete" radio button.

Being a stranger to Java, anybody know any good resources to start with?
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In alt.comp.lang.coldfusion Jean Luc Skywalker Baggins <fr***@jean.luc> wrote:

: Right now I'm using radio buttons for 'complete' or 'incomplete' and then
: two selection menus for semester and grade. This is very clunky looking.
: I'd prefer that the "what semester" and "what grade" selection menus would
: only appear after the student clicks the "complete" radio button.

You probably need *JavaScript* not Java, which is something
completely different and unrelated.

--
Bob Dively | I used to be indecisive, but now I'm not sure...
Jul 17 '05 #2

P: n/a
As Bob mentioned you are talking about javascript not java (very different
animals!)

The code you'll need will be something like this:

<FORM>
Complete: <input name="complete" type="radio" value="1"
onClick="document.all.completed.style.display ='';">
Incomplete: <input name="complete" type="radio" value="1"
onClick="document.all.completed.style.display ='none';">
<SPAN id="completed" STYLE="display:none">
<hr>
Semester: <select name="semester"></select><br>
Grade: <select name="grade"></select>
</SPAN>
</FORM>

Basically when you click on the radio buttons they will show or hide
(depending which one u click!) all the code between the 'completed' SPAN
tags.

cheers

Jon
Visation Ltd

www.MyGolfingLife.com - find great golf courses near you!
"Jean Luc Skywalker Baggins" <fr***@jean.luc> wrote in message
news:xkN_c.4342$dC4.35@trndny06...
Didn't know who to ask, the java experts or the coldfusion experts... so
here it is and my sincerest appologies for the crosspost. I am also going to crosspost to alt.startrek for good measure. Generally speaking, whenever I
do this the response seems to come from the startrek NG first no matter how inappropriate the crosspost... go figure.

I'm working on a coldfusion application that asks students whether they have taken a class, and if so in which semester did they take it and what grade
did they get.

Right now I'm using radio buttons for 'complete' or 'incomplete' and then
two selection menus for semester and grade. This is very clunky looking.
I'd prefer that the "what semester" and "what grade" selection menus would
only appear after the student clicks the "complete" radio button.

Being a stranger to Java, anybody know any good resources to start with?

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.752 / Virus Database: 503 - Release Date: 03/09/2004
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.