Method signature

FAPI.UI.getPageInfo();

Example usage

function getPageInfo(){
    FAPI.UI.getPageInfo();
}

Callback function

It invokes the method API_callback, passing it as a parameter data object that contains the field (all values in pixels):

ParameterDescription
clientWidthThe width of the page (not to be confused with a screen resolution, if the value is larger than the screen resolution, a scroll bar appears)
clientHeightThe height of the page (not to be confused with a screen resolution, if the value is larger than the screen resolution, a scroll bar appears)
scrollLeftThe horizontal scroll position
scrollTopThe vertical scroll position
offsetLeftThe distance between the left edge of the page and the left edge iframe application
offsetTopThe distance between the upper edge and the upper edge of the page application iframe
innerHeightThe height of the user’s browser window (window.innerHeigth)
innerWidthThe width of the user’s browser window (window.innerWidth)

Callback example

method: “getPageInfo”

result: “ok”

data:”{‘clientWidth’:1000,’clientHeight’:934,’scrollLeft’:0,’scrollTop’:0,’offsetLeft’:0,’offsetTop’:76,’innerHeight’:949,’innerWidth’:863}”