I managed to kludge it after searching google with various permutations:
Bind to the individual grid column:
<cfajaxproxy bind="javascript:noteChange({documentGrid.is_restricted})">
React to the bind change in JS:
function noteChange(restricted) {
var restrictBoolean;
if (restricted == 1) {
restrictBoolean = true;
} else {
restrictBoolean = false;
}
document.getElementById('formRestricted').checked = restrictBoolean;
}
Stripped down form checkbox input:
<cfinput name="formRestricted" type="checkbox" />
If I can do it with the built in functionality then why isn't it there working
properly on a bind? Some sort of consistency would be nice.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304329
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4