close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

CSS Behavior

Thread began 11/20/2018 9:51 am by vernon webb | Last modified 11/20/2018 4:15 pm by vernon webb | 18 views | 1 replies

vernon webb

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 } ?>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...