Personal tools

Log in

Changes

From All n One's bxp software Wixi

Jump to: navigation, search

JavaScript Show / Hide elements

42 bytes removed, 09:54, 16 March 2012
no edit summary
The simple way to show or hide elements is to use the style tag of the object.
<syntaxhighlight lang="javascript" line start="1" highlight="5">
document.getElementById(strFieldName).style.display = 'none';
document.getElementById(strFieldName).style.display = 'inline';
Firstly, we've made show / hide separate function calls for easy of use, with a toggle function as well as implicit show and hide.
<syntaxhighlight lang="javascript" line start="1" highlight="5">
//========================================================================
function fn_Gen_Toggle ( strFieldName ){
With one function call to fn_Gen_EndElements you can show or hide most of the bottom elements of the page.
<syntaxhighlight lang="javascript" line start="1" highlight="5">
function fn_Gen_EndElements ( blComments, blOutcome, blCallback, blAssignedTo, blViewAppointments, blAppFrom, blAppUntil, blClosing ){
//----------------------------------------------------
7,528
edits