GlideOverlay

This is something like GlideModal or GlideWindow. It expects a object as part of its call;

var theObject = {
id : 'test-id',//seems to be the ui page it uses
title : '',//self explanatory
width : '',//self explanatory
height: '',//self explanatory
draggable: true,
form: 'incident',
iframe: '',
onAfterLoad: null,//expects a function, see UI Script "KBViewArticle" for example
onAfterClose: null,//expecs a function, see ui action "Add" on cmdb_outage_ci_mtom
closeOnEscape: true,
showClose: true,
messages: "",
allowOverFlowX: true,
};
var go = new GlideOverlay(theObject);
// you can also set things...
go.setBodyFromForm('someuipage');
go.setPreference('sysparm_error','error msg');
go.setAfterLoad(null);//expects function
go.setTitle('the new title');
go.center();
go.render();
/**
// I found these by running this in console
// on my browser
// var a = new GlideOverlay({});
// for(var p in a){
// if(typeof a[p] === 'function'){
// console.log('go.' + p + '();');
// }
// }
**/
// GlideOverlay.close('test-id');
// window.parent.GlideOverlay.close('test-id');
Property/MethodDescription
_escapeCloseHandlerUnknown
_focusHandlerUnknown
initializeUnknown
isModalUnknown
closeOnEscapeUnknown
closeUnknown
toStringUnknown
constructorUnknown
getIdUnknown
getBoxElementUnknown
getBoxWrapperElementUnknown
getIFrameElementUnknown
isVisibleUnknown
isLoadingUnknown
setOnClickUnknown
setOnBeforeLoadUnknown
setOnAfterLoadUnknown
setOnBeforeCloseUnknown
setOnAfterCloseUnknown
setOnBeforeDragUnknown
setOnAfterDragUnknown
setOnBeforeResizeUnknown
setOnAfterResizesUnknown
setOnHeightAdjustUnknown
setOnWidthAdjustUnknown
addDataUnknown
getDataUnknown
getToolbarUnknown
addToolbarRowUnknown
setTitleUnknown
setTitleHtmlUnknown
setWindowIconUnknown
addWindowIconUnknown
removeToolbarDecorationUnknown
addToolbarLeftDecorationUnknown
addToolbarRightDecorationUnknown
addToolbarCloseButtonUnknown
removeToolbarCloseButtonUnknown
setToolbarCloseOnClickUnknown
_addToolbarDecorationUnknown
getFooterUnknown
showFooterUnknown
hideFooterUnknown
showFooterResizeGripsUnknown
hideFooterResizeGripsUnknown
getFooterContainerUnknown
setFooterUnknown
prependFooterRowUnknown
appendFooterRowUnknown
_addFooterRowUnknown
getMaxDimensionsUnknown
getDocumentHeightUnknown
getDocumentWidthUnknown
autoDimensionUnknown
sizeUnknown
setMaxWidthUnknown
setWidthUnknown
setMinWidthUnknown
setHeightUnknown
setMinHeightUnknown
getMaxPositionsUnknown
autoPositionUnknown
centerUnknown
setMaxTopUnknown
setMinBottomUnknown
positionTopUnknown
positionLeftUnknown
positionRightUnknown
positionBottomUnknown
convertToLeftPositionUnknown
convertToRightPositionUnknown
setStyleUnknown
getWidthUnknown
getHeightUnknown
getStyleUnknown
getOffsetUnknown
getBodyElementUnknown
getBodyWrapperElementUnknown
setBodyUnknown
setBodyFromFormUnknown
setBodyPaddingUnknown
_getViewportDimensionsUnknown
setDraggableUnknown asdfasdfasdfasdfasdfasdfsad
isDraggableUnknown
setPreferencesUnknown
setPreferenceUnknown
getPreferencesUnknown
removePreferenceUnknown
getDescribingXMLUnknown
getDescribingTextUnknown
hideUnknown
showUnknown
renderUnknown
_renderStaticUnknown
_renderFormUnknown
_renderIFrameUnknown
_createIframeShimUnknown
_resizeIframeShimUnknown
_removeIFrameShimUnknown
_isQuirksModeUnknown
_focusHandlerPrototypeUnknown
_activateFocusTrapUnknown
_deactivateFocusTrapUnknown

IFrame example

var o = new GlideOverlay({
title : "Edit Metadata Request",
iframe : metadataservice_gui_url,
allowOverflowX : true,
height : 650,
width : 1000
//messages : ""
});

UI Page example

new GlideOverlay({
title: new GwtMessage().getMessage('Run Fix Script'),
form: 'run_fix_script_dialog',
preferences: {
'sysparm_script_name': gr.u_notes,
'sysparm_sys_id': gr.sys_id
},
width: 600
}).render();

Further Reading: