Hello Dan,
I appriciate your pointer, and i do read alot on the net
before I post here, I alsp appriciat you probley get anoyed at
people that just use this place for a quick answer with putting no
real effort in.
But I can asure you that I have spent most of my working day
trying to figure this one out before I posted to this forum.
The script below sort of solves a few things
<script language="JavaScript">
<!-- Hide
function test1(form) {
if (form.text1.checked)
alert("Please enter a string!")
else {
alert(""+form.text1.value+"");
}
}
// -->
</script>
<form name="first">
<input name="text1" type="checkbox" value="yesyes" />
<select name="gogogo" onchange="test1(this.form)">
<option value="none">none</option>
<option value="some">some</option>
</select>
</form>
but doing it that way I cant get <CFOUTPUT> variables
to apear in the msg, if i try to change the value of the tickbox
like
<input name="text1" type="checkbox"
onClick="if{this.checked}{this.form.text1.value='IAMTICKED'}" >
allows me to onchange another form element and it pops up a
msg with the text1 value in 'IAMTICKED' but I cant seem to get all
the bits working together.
two checkboxes or two radial spots one with value 'OK' one
with 'NOTOK'
and on the change of a drop down list it would show me the
value of which ever check/radial is selected.
Now if I do it with javascript in the header i cant get the
cfoutput variables to return in the message
and if i do it ini the form after the elements i cant get the
form element value to return I need both you see and after 4 hours
messing about i thought Id ask 🙂 below is complete code to date
for this.
<script type="text/JavaScript">
<!--
function MM_popupMsg(msg) {
alert(msg);
}
//-->
</script>
*******************
<input name="review" type="radio" value="ok" />
<input name="review" type="radio" value="notok" />
<select name="select"
onchange="MM_popupMsg('<cfoutput>#query.name# by selecting
\'YES\' you agree that:\r Review = XXXXXX</CFOUTPUT>')">
<option value=" " selected="selected"></option>
<option value="YES">YES</option>
</select>
the XXXXX is where i need my radio button value to go.
Kind Regards Guy