// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
Google / Android
Python / IronPython
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 'setLocation(element, x, y)'
Method: setLocation(element, x, y)
Method Full Name:     Sys$UI$DomElement$setLocation(element, x, y)
Class: DomElement
Namespace: Sys.UI
Source File: MicrosoftAjax.debug.js
1   Sys.UI.DomElement.setLocation = function Sys$UI$DomElement$setLocation(element, x, y) {
2     /// <summary locid="M:J#Sys.UI.DomElement.setLocation" />
3     /// <param name="element" domElement="true"></param>
4     /// <param name="x" type="Number" integer="true"></param>
5     /// <param name="y" type="Number" integer="true"></param>
6     var e = Function._validateParams(arguments, [
7     {name: "element", domElement: true},
8     {name: "x", type: Number, integer: true},
9     {name: "y", type: Number, integer: true}
10    ]);
11    if (e) throw e;
12    var style = element.style;
13    style.position = 'absolute';
14    style.left = x + "px";
15    style.top = y + "px";
16  }
This is the JavaScript source for method setLocation(element, x, y) from ASP.NET AJAX Library. Full name for this method is Sys$UI$DomElement$setLocation(element, x, y). 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