CSS Behavior
I know this is outside WebAssist but was hoping you could help:
I have a form that is setup to edit some values in the database. This form contains some hidden layers. When INSERTING clicking on Yes displays one layer and clicking on no displays another. Easy enough. However when editing I need the one layer to show if it's YES and the other other layer if it's no. This value mind you is not stored in database but another field in the DB would. So based on that field, whether it is set or not I want it to show or hide a layer. So I thought that using a <SPAN> I could load the layer with an onLoad as follows, but this does not seem to work. It does however work if I use the onClick function in place.
<?php if ($rsMGR_RATING->getColumnVal('further_dialogue')) { ?>
<span id="displayConnectYes" onLoad="MM_showHideLayers('connectYes','','show','connectNo','','hide')">
<input name="connect" type="radio" id="radio" onclick="MM_showHideLayers('connectYes','','show','connectNo','','hide')" value="Yes" checked="checked" />
<label for="connect">Yes
<input name="connect" type="radio" id="radio2" onclick="MM_showHideLayers('connectYes','','hide','connectNo','','show')" value="No" />No</label></span>
<?php } else { ?>
<span id="displayConnectNo" onLoad="MM_showHideLayers('connectYes','','hide','connectNo','','show')">
<input name="connect" type="radio" id="radio" onclick="MM_showHideLayers('connectYes','','show','connectNo','','hide')" value="Yes" />
<label for="connect">Yes
<input name="connect" type="radio" id="radio2" onclick="MM_showHideLayers('connectYes','','hide','connectNo','','show')" value="No" checked="checked" />No</label>
<?php } ?>