{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
AJAX Source Viewer
View the source code of a Method from ASP.NET AJAX Library. Choose a method from the menu items above (Namespaces, Classes, or Methods).
Method 'setVisibilityMode(element, value)'
Method: setVisibilityMode(element, value)
Method Full Name:     Sys$UI$DomElement$setVisibilityMode(element, value)
Class: DomElement
Namespace: Sys.UI
Source File: MicrosoftAjax.debug.js
1   Sys.UI.DomElement.setVisibilityMode = function Sys$UI$DomElement$setVisibilityMode(element, value) {
2     /// <summary locid="M:J#Sys.UI.DomElement.setVisibilityMode" />
3     /// <param name="element" domElement="true"></param>
4     /// <param name="value" type="Sys.UI.VisibilityMode"></param>
5     var e = Function._validateParams(arguments, [
6     {name: "element", domElement: true},
7     {name: "value", type: Sys.UI.VisibilityMode}
8     ]);
9     if (e) throw e;
10    Sys.UI.DomElement._ensureOldDisplayMode(element);
11    if (element._visibilityMode !== value) {
12      element._visibilityMode = value;
13      if (Sys.UI.DomElement.getVisible(element) === false) {
14        if (element._visibilityMode === Sys.UI.VisibilityMode.hide) {
15          element.style.display = element._oldDisplayMode;
16        }
17        else {
18          element.style.display = 'none';
19        }
20      }
21      element._visibilityMode = value;
22    }
23  }
This is the JavaScript source for method setVisibilityMode(element, value) from ASP.NET AJAX Library. Full name for this method is Sys$UI$DomElement$setVisibilityMode(element, value). It belongs to the class DomElement, which is in Sys.UI namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map