MSchienle has asked for the wisdom of the Perl Monks concerning the following question:
Here's the JavaScript code that gets called by toggleEmail on the radio button in case there's something here that needs to be changed to work with the CGI.'Show Email:<input type="radio" id="hideEmail" name="radioEmail" ', 'checked="1" onclick="toggleEmail(event)" />No', '<input type="radio" id="showEmail" name="radioEmail"', 'onclick="toggleEmail(event)" />Yes',
Many thanks for any help.function toggleEmail(evt) { evt = (evt) ? evt : event; var target = (evt.target) ? evt.target : evt.srcElement; var eBlock = document.getElementById("SectionEmail"); var eAction = document.getElementById("ActionEmail"); if (target.id == "showEmail") { eBlock.style.display = "block"; eAction.style.display = "inline"; } else { eBlock.style.display = "none"; eAction.style.display = "none"; var sBlock = document.getElementById("SectionSchedule"); var sCheck = document.getElementById("hideSchedule"); var sAction = document.getElementById("ActionSchedule"); sCheck.checked = "true"; sBlock.style.display = "none"; sAction.style.display = "none"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Equivalent functionality in CGI.pm
by CountZero (Bishop) on Jul 04, 2004 at 20:58 UTC | |
|
Re: Equivalent functionality in CGI.pm
by BUU (Prior) on Jul 04, 2004 at 18:12 UTC | |
by Your Mother (Archbishop) on Jul 04, 2004 at 19:23 UTC | |
by MSchienle (Novice) on Jul 04, 2004 at 20:08 UTC | |
by Your Mother (Archbishop) on Jul 04, 2004 at 20:42 UTC | |
by MSchienle (Novice) on Jul 04, 2004 at 21:06 UTC | |
by MSchienle (Novice) on Jul 04, 2004 at 19:46 UTC |