{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 '_getScrollPosition()'
Method: _getScrollPosition()
Method Full Name:     Sys$WebForms$PageRequestManager$_getScrollPosition()
Class: PageRequestManager
Namespace: Sys.WebForms
Source File: MicrosoftAjaxWebForms.debug.js
1   function Sys$WebForms$PageRequestManager$_getScrollPosition() {
2     var d = document.documentElement;
3     if (d && (this._validPosition(d.scrollLeft) || this._validPosition(d.scrollTop))) {
4       return {
5         x: d.scrollLeft,
6         y: d.scrollTop
7         };
8     }
9     else {
10      d = document.body;
11      if (d && (this._validPosition(d.scrollLeft) || this._validPosition(d.scrollTop))) {
12        return {
13          x: d.scrollLeft,
14          y: d.scrollTop
15          };
16      }
17      else {
18        if (this._validPosition(window.pageXOffset) || this._validPosition(window.pageYOffset)) {
19          return {
20            x: window.pageXOffset,
21            y: window.pageYOffset
22            };
23        }
24        else {
25          return {
26            x: 0,
27            y: 0
28            };
29        }
30      }
31    }
32  }
This is the JavaScript source for method _getScrollPosition() from ASP.NET AJAX Library. Full name for this method is Sys$WebForms$PageRequestManager$_getScrollPosition(). It belongs to the class PageRequestManager, which is in Sys.WebForms namespace. This source is in MicrosoftAjaxWebForms.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map