Element Visibility
|
Instead of:
Use any of the following:
PF.nodisplay(e);
PF.nodisplay('mydiv');
PF.ND(‘mydiv’);
|
|
Instead of: if (mz) e.textContent = text; else e.innerText = text; Use either of the following: PF.T('mydiv', 'text to set');
PF.T(e, 'text to set');
|
|
Instead of: Use any of the following:
PF.display(e);
PF.display('mydiv');
PF.D(‘mydiv’);
|
|
Returns true if the element is visible; false otherwise. |
clearDisplay(el) |
Clears the e.style.display property and reverts to what is defined in CSS. |
hide(el)
|
Sets visibility style to hidden. |
visible(el)
|
Sets visibility style to visible. |
toggleDisplay(el) |
Toggles display attribute to show/hide element. |
switch(display, nodisplay)
|
Displays the first item and hides the second item. |
toggleVisibility(name) |
Toggle display style between “none” and “block”. |
canYouSeeMe(target) |
Returns true if the item isvisible on the screen, or false if it is notvisible. It does so by walking through the ancestors and checking whether any of them has the display attribute set to none or the visibility attribute set to hidden. |

