SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
Microsoft AJAX Library: Sys.UI.DomElement Class
getElementById (id, element)                                                                           Sets the absolute position of an element relative to the upper-left corner of its
Gets an element with the specified id attribute. element is the parent element to                      containing block. The containing block for an absolutely positioned element is
search in, if specified (defaults to document otherwise).                                              the nearest ancestor with a position value other than static.
var article = Sys.UI.DomElement.getElementById('article');
                                                                                                       Remarks
var heading = Sys.UI.DomElement.getElementById('heading', article)
// Note: 'article' is an instance of Sys.UI.DomElement
                                                                                                       The element is positioned via the position: absolute CSS rule. It is therefore
var btn = Sys.UI.DomElement.getElementById('<%= Submit.ClientID %>');
                                                                                                       taken out of the page flow. If there are elements that preceed and follow it, they
// Note: 'Submit' is an ASP.NET Button server control
                                                                                                       will collapse to close the gap.
$get (id, element)                                                                                     var menu = $get('menu');
Provides a shortcut to the Sys.UI.DomElement.getElementById.                                           Sys.UI.DomElement.setLocation(menu, 200, 50);
var article = $get('article');
                                                                                                       getBounds (element)
var heading = $get('heading', article)
                                                                                                       Gets the absolute coordinates of an element along with its height and width.
// Note: 'article' is an instance of Sys.UI.DomElement
                                                                                                       Returns an object with the following fields:
var btn = $get('<%= Submit.ClientID %>');
// Note: 'Submit' is an ASP.NET Button server control
                                                                                                       x, y                Absolute coordinates of an element within the browser window. See also
addCssClass (element, className)                                                                                           Sys.UI.DomElement.getLocation().
Adds the specified CSS class to element.                                                               width               Element width in pixels which includes borders, horizontal padding,
                                                                                                                           vertical scrollbar (if present) and the element CSS width.
Sys.UI.DomElement.addCssClass($get('heading'), 'highlight');
                                                                                                       height              Element height in pixels which includes borders, vertical padding,
containsCssClass (element, className)                                                                                      horizontal scrollbar (if present) and the element CSS height.
Determines if element has the specified CSS class.                                                     var article = $get('article');
                                                                                                       var bounds = Sys.UI.DomElement.getBounds (article);
var heading = $get('heading', article)
                                                                                                       Sys.Debug.traceDump (bounds, 'Article position and size');
var isHighlighted =
                                                                                                       /*
       Sys.UI.DomElement.containsCssClass(heading, 'highlight');
                                                                                                       Article position and size {Sys.UI.Bounds}
removeCssClass (element, className)                                                                       x: 50
                                                                                                          y: 200
Removes the specified CSS class from element.                                                             height: 268
                                                                                                          width: 368
var heading = $get('heading', article)
                                                                                                       */
Sys.UI.DomElement. removeCssClass (heading, 'highlight');
                                                                                                       Note how width and height of an element include borders, padding and
toggleCssClass (element, className)                                                                    scrollbars. Element dimensions: 300x200 px, 20 px border, 14 px padding.
Toggles the specified CSS class in element.                                                            quot;Boundsquot; are 368x268 px.
var heading = $get('heading', article)
var isHighlighted =
        Sys.UI.DomElement.toggleCssClass(heading, 'highlight');

getLocation (element)
Gets the absolute position of an element relative to the upper-left corner of the
browser window, i.e. with scrolling taken into account.
var article = $get('article');
var position = Sys.UI.DomElement.getLocation(article);
var x = position.x, y = position.y;

setLocation (element, x, y)

   A function is static and is invoked without creating an instance of the object   Based on Microsoft AJAX Library 1.0 • Compiled by Milan Negovan • www.AspNetResources.com • Last update: 2007-01-24

Mais conteúdo relacionado

Mais procurados

Backbone.js Simple Tutorial
Backbone.js Simple TutorialBackbone.js Simple Tutorial
Backbone.js Simple Tutorial
추근 문
 
Drupal Step-by-Step: How We Built Our Training Site, Part 1
Drupal Step-by-Step: How We Built Our Training Site, Part 1Drupal Step-by-Step: How We Built Our Training Site, Part 1
Drupal Step-by-Step: How We Built Our Training Site, Part 1
Acquia
 
this is ruby test
this is ruby testthis is ruby test
this is ruby test
51 lecture
 
citigroup January 13, 2006 - Reformatted Quarterly Financial Data Supplement...
citigroup  January 13, 2006 - Reformatted Quarterly Financial Data Supplement...citigroup  January 13, 2006 - Reformatted Quarterly Financial Data Supplement...
citigroup January 13, 2006 - Reformatted Quarterly Financial Data Supplement...
QuarterlyEarningsReports
 
Django Class-based views (Slovenian)
Django Class-based views (Slovenian)Django Class-based views (Slovenian)
Django Class-based views (Slovenian)
Luka Zakrajšek
 
Desarrollo de módulos en Drupal e integración con dispositivos móviles
Desarrollo de módulos en Drupal e integración con dispositivos móvilesDesarrollo de módulos en Drupal e integración con dispositivos móviles
Desarrollo de módulos en Drupal e integración con dispositivos móviles
Luis Curo Salvatierra
 
Анатолий Поляков - Drupal.ajax framework from a to z
Анатолий Поляков - Drupal.ajax framework from a to zАнатолий Поляков - Drupal.ajax framework from a to z
Анатолий Поляков - Drupal.ajax framework from a to z
LEDC 2016
 

Mais procurados (20)

Dependency Injection
Dependency InjectionDependency Injection
Dependency Injection
 
Transparent Object Persistence with FLOW3
Transparent Object Persistence with FLOW3Transparent Object Persistence with FLOW3
Transparent Object Persistence with FLOW3
 
Single page webapps & javascript-testing
Single page webapps & javascript-testingSingle page webapps & javascript-testing
Single page webapps & javascript-testing
 
Backbone.js Simple Tutorial
Backbone.js Simple TutorialBackbone.js Simple Tutorial
Backbone.js Simple Tutorial
 
Be lazy, be ESI: HTTP caching and Symfony2 @ PHPDay 2011 05-13-2011
 Be lazy, be ESI: HTTP caching and Symfony2 @ PHPDay 2011 05-13-2011 Be lazy, be ESI: HTTP caching and Symfony2 @ PHPDay 2011 05-13-2011
Be lazy, be ESI: HTTP caching and Symfony2 @ PHPDay 2011 05-13-2011
 
Jquery optimization-tips
Jquery optimization-tipsJquery optimization-tips
Jquery optimization-tips
 
Organizing Code with JavascriptMVC
Organizing Code with JavascriptMVCOrganizing Code with JavascriptMVC
Organizing Code with JavascriptMVC
 
A to Z about JQuery - Become Newbie to Expert Java Developer
A to Z about JQuery - Become Newbie to Expert Java DeveloperA to Z about JQuery - Become Newbie to Expert Java Developer
A to Z about JQuery - Become Newbie to Expert Java Developer
 
Drupal Step-by-Step: How We Built Our Training Site, Part 1
Drupal Step-by-Step: How We Built Our Training Site, Part 1Drupal Step-by-Step: How We Built Our Training Site, Part 1
Drupal Step-by-Step: How We Built Our Training Site, Part 1
 
50 jquery
50 jquery50 jquery
50 jquery
 
JavaScript for Flex Devs
JavaScript for Flex DevsJavaScript for Flex Devs
JavaScript for Flex Devs
 
Drupal csu-open atriumname
Drupal csu-open atriumnameDrupal csu-open atriumname
Drupal csu-open atriumname
 
this is ruby test
this is ruby testthis is ruby test
this is ruby test
 
citigroup January 13, 2006 - Reformatted Quarterly Financial Data Supplement...
citigroup  January 13, 2006 - Reformatted Quarterly Financial Data Supplement...citigroup  January 13, 2006 - Reformatted Quarterly Financial Data Supplement...
citigroup January 13, 2006 - Reformatted Quarterly Financial Data Supplement...
 
Django Class-based views (Slovenian)
Django Class-based views (Slovenian)Django Class-based views (Slovenian)
Django Class-based views (Slovenian)
 
WordPress for developers - phpday 2011
WordPress for developers -  phpday 2011WordPress for developers -  phpday 2011
WordPress for developers - phpday 2011
 
Desarrollo de módulos en Drupal e integración con dispositivos móviles
Desarrollo de módulos en Drupal e integración con dispositivos móvilesDesarrollo de módulos en Drupal e integración con dispositivos móviles
Desarrollo de módulos en Drupal e integración con dispositivos móviles
 
Анатолий Поляков - Drupal.ajax framework from a to z
Анатолий Поляков - Drupal.ajax framework from a to zАнатолий Поляков - Drupal.ajax framework from a to z
Анатолий Поляков - Drupal.ajax framework from a to z
 
jQuery. Write less. Do More.
jQuery. Write less. Do More.jQuery. Write less. Do More.
jQuery. Write less. Do More.
 
Dojo >= 1.7 Kickstart
Dojo >= 1.7  KickstartDojo >= 1.7  Kickstart
Dojo >= 1.7 Kickstart
 

Destaque (7)

Ms Ajax Array Extensions
Ms Ajax Array ExtensionsMs Ajax Array Extensions
Ms Ajax Array Extensions
 
PròXim Orient
PròXim OrientPròXim Orient
PròXim Orient
 
PròXim Orient
PròXim OrientPròXim Orient
PròXim Orient
 
Modificación de "diario de un perro"
Modificación de "diario de un perro"Modificación de "diario de un perro"
Modificación de "diario de un perro"
 
Discapacidad auditiva
Discapacidad auditivaDiscapacidad auditiva
Discapacidad auditiva
 
PròXim Orient
PròXim OrientPròXim Orient
PròXim Orient
 
Modificada pueblos barbaros
Modificada pueblos barbarosModificada pueblos barbaros
Modificada pueblos barbaros
 

Semelhante a Ms Ajax Dom Element Class

Zepto.js, a jQuery-compatible mobile JavaScript framework in 2K
Zepto.js, a jQuery-compatible mobile JavaScript framework in 2KZepto.js, a jQuery-compatible mobile JavaScript framework in 2K
Zepto.js, a jQuery-compatible mobile JavaScript framework in 2K
Thomas Fuchs
 
Responsive mobile design in practice
Responsive mobile design in practiceResponsive mobile design in practice
Responsive mobile design in practice
Kirill Grouchnikov
 

Semelhante a Ms Ajax Dom Element Class (20)

Selenium cheat sheet
Selenium cheat sheetSelenium cheat sheet
Selenium cheat sheet
 
Backbone.js: Run your Application Inside The Browser
Backbone.js: Run your Application Inside The BrowserBackbone.js: Run your Application Inside The Browser
Backbone.js: Run your Application Inside The Browser
 
Jquery presentation
Jquery presentationJquery presentation
Jquery presentation
 
Prototype Framework
Prototype FrameworkPrototype Framework
Prototype Framework
 
DOM and Events
DOM and EventsDOM and Events
DOM and Events
 
Zepto.js, a jQuery-compatible mobile JavaScript framework in 2K
Zepto.js, a jQuery-compatible mobile JavaScript framework in 2KZepto.js, a jQuery-compatible mobile JavaScript framework in 2K
Zepto.js, a jQuery-compatible mobile JavaScript framework in 2K
 
Responsive mobile design in practice
Responsive mobile design in practiceResponsive mobile design in practice
Responsive mobile design in practice
 
Styling Components with JavaScript: MelbCSS Edition
Styling Components with JavaScript: MelbCSS EditionStyling Components with JavaScript: MelbCSS Edition
Styling Components with JavaScript: MelbCSS Edition
 
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드4시간만에 따라해보는 Windows 10 앱 개발 샘플코드
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드
 
Fabric.js @ Falsy Values
Fabric.js @ Falsy ValuesFabric.js @ Falsy Values
Fabric.js @ Falsy Values
 
SenchaCon 2016: Theming the Modern Toolkit - Phil Guerrant
SenchaCon 2016: Theming the Modern Toolkit - Phil Guerrant   SenchaCon 2016: Theming the Modern Toolkit - Phil Guerrant
SenchaCon 2016: Theming the Modern Toolkit - Phil Guerrant
 
Web Components Everywhere
Web Components EverywhereWeb Components Everywhere
Web Components Everywhere
 
J query b_dotnet_ug_meet_12_may_2012
J query b_dotnet_ug_meet_12_may_2012J query b_dotnet_ug_meet_12_may_2012
J query b_dotnet_ug_meet_12_may_2012
 
J query1
J query1J query1
J query1
 
Web Development Course - JQuery by RSOLUTIONS
Web Development Course - JQuery by RSOLUTIONSWeb Development Course - JQuery by RSOLUTIONS
Web Development Course - JQuery by RSOLUTIONS
 
Jquery presentation
Jquery presentationJquery presentation
Jquery presentation
 
Jquery introduction
Jquery introductionJquery introduction
Jquery introduction
 
jQuery
jQueryjQuery
jQuery
 
Web 6 | JavaScript DOM
Web 6 | JavaScript DOMWeb 6 | JavaScript DOM
Web 6 | JavaScript DOM
 
jQuery Rescue Adventure
jQuery Rescue AdventurejQuery Rescue Adventure
jQuery Rescue Adventure
 

Mais de jason hu 金良胡 (20)

新员工培训
新员工培训新员工培训
新员工培训
 
Javascript 闭包
Javascript 闭包Javascript 闭包
Javascript 闭包
 
Windows Powershell En
Windows Powershell   EnWindows Powershell   En
Windows Powershell En
 
正则表达式
正则表达式正则表达式
正则表达式
 
Work In Japan
Work In JapanWork In Japan
Work In Japan
 
Linuxcommand
LinuxcommandLinuxcommand
Linuxcommand
 
Ubunturef
UbunturefUbunturef
Ubunturef
 
Asp.Net运行时
Asp.Net运行时Asp.Net运行时
Asp.Net运行时
 
Fwunixref
FwunixrefFwunixref
Fwunixref
 
X Query
X QueryX Query
X Query
 
Sql2005 Xml
Sql2005 XmlSql2005 Xml
Sql2005 Xml
 
Ms Ajax Number And Error Extensions
Ms Ajax Number And Error ExtensionsMs Ajax Number And Error Extensions
Ms Ajax Number And Error Extensions
 
Ms Ajax Dom Event Class
Ms Ajax Dom Event ClassMs Ajax Dom Event Class
Ms Ajax Dom Event Class
 
Ms Ajax Date And Boolean Extensions
Ms Ajax Date And Boolean ExtensionsMs Ajax Date And Boolean Extensions
Ms Ajax Date And Boolean Extensions
 
Ms Ajax String And Object Extensions
Ms Ajax String And Object ExtensionsMs Ajax String And Object Extensions
Ms Ajax String And Object Extensions
 
Ext Js Events
Ext Js EventsExt Js Events
Ext Js Events
 
Ext Js Dom Navigation
Ext Js Dom NavigationExt Js Dom Navigation
Ext Js Dom Navigation
 
Ext Js Events
Ext Js EventsExt Js Events
Ext Js Events
 
Ext J S Observable
Ext J S ObservableExt J S Observable
Ext J S Observable
 
Java Script Introduction
Java Script IntroductionJava Script Introduction
Java Script Introduction
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

Ms Ajax Dom Element Class

  • 1. Microsoft AJAX Library: Sys.UI.DomElement Class getElementById (id, element) Sets the absolute position of an element relative to the upper-left corner of its Gets an element with the specified id attribute. element is the parent element to containing block. The containing block for an absolutely positioned element is search in, if specified (defaults to document otherwise). the nearest ancestor with a position value other than static. var article = Sys.UI.DomElement.getElementById('article'); Remarks var heading = Sys.UI.DomElement.getElementById('heading', article) // Note: 'article' is an instance of Sys.UI.DomElement The element is positioned via the position: absolute CSS rule. It is therefore var btn = Sys.UI.DomElement.getElementById('<%= Submit.ClientID %>'); taken out of the page flow. If there are elements that preceed and follow it, they // Note: 'Submit' is an ASP.NET Button server control will collapse to close the gap. $get (id, element) var menu = $get('menu'); Provides a shortcut to the Sys.UI.DomElement.getElementById. Sys.UI.DomElement.setLocation(menu, 200, 50); var article = $get('article'); getBounds (element) var heading = $get('heading', article) Gets the absolute coordinates of an element along with its height and width. // Note: 'article' is an instance of Sys.UI.DomElement Returns an object with the following fields: var btn = $get('<%= Submit.ClientID %>'); // Note: 'Submit' is an ASP.NET Button server control x, y Absolute coordinates of an element within the browser window. See also addCssClass (element, className) Sys.UI.DomElement.getLocation(). Adds the specified CSS class to element. width Element width in pixels which includes borders, horizontal padding, vertical scrollbar (if present) and the element CSS width. Sys.UI.DomElement.addCssClass($get('heading'), 'highlight'); height Element height in pixels which includes borders, vertical padding, containsCssClass (element, className) horizontal scrollbar (if present) and the element CSS height. Determines if element has the specified CSS class. var article = $get('article'); var bounds = Sys.UI.DomElement.getBounds (article); var heading = $get('heading', article) Sys.Debug.traceDump (bounds, 'Article position and size'); var isHighlighted = /* Sys.UI.DomElement.containsCssClass(heading, 'highlight'); Article position and size {Sys.UI.Bounds} removeCssClass (element, className) x: 50 y: 200 Removes the specified CSS class from element. height: 268 width: 368 var heading = $get('heading', article) */ Sys.UI.DomElement. removeCssClass (heading, 'highlight'); Note how width and height of an element include borders, padding and toggleCssClass (element, className) scrollbars. Element dimensions: 300x200 px, 20 px border, 14 px padding. Toggles the specified CSS class in element. quot;Boundsquot; are 368x268 px. var heading = $get('heading', article) var isHighlighted = Sys.UI.DomElement.toggleCssClass(heading, 'highlight'); getLocation (element) Gets the absolute position of an element relative to the upper-left corner of the browser window, i.e. with scrolling taken into account. var article = $get('article'); var position = Sys.UI.DomElement.getLocation(article); var x = position.x, y = position.y; setLocation (element, x, y) A function is static and is invoked without creating an instance of the object Based on Microsoft AJAX Library 1.0 • Compiled by Milan Negovan • www.AspNetResources.com • Last update: 2007-01-24