In an XPages application I've been given the following HTML code for a navigation bar which will be used to select which of three different Custom Controls display:
<ul class="Navigation">
<li><a href="optionOne">Option One</a></li>
<li><a href="optionTwo">Option Two</a></li>
<li><a href="optionThree">Option Three</a></li>
</ul>
I know lots of ways to display or hide Panes or Divs or Custom Controls from buttons or code but I can't figure out how to do it from a simple HREF call. I've tried hiding a div using dojo which works in CSJS in a button but not here, and using CSJS to set a sessionScope variable which of course doesn't work:
<li><a href="javascript:dojo.byId('#{id:myDivTwo}').style.display='none'">Option One</a></li>
<li><a href="javascript:sessionScope.candidateCC = 'optionTwo';">Option Two</a></li>
I'd appreciate any help with this. Thanks very much in advance!