JavaScript
windowObject.getWindowId Method
Syntax
windowObj.getWindowId([part]);
Arguments
- part
The part of the window to get the ID for. Can be one of the following:
- Window Part
- Description
- "title"
The window title.
- "header"
The window header.
- "body-container"
The container for the body.
- "tbar"
The top bar.
- "body"
The window body.
- "bbar"
The bottom bar.
- "buttons"
The window buttons.
- "footer"
The window footer.
Returns
- resultstring
Returns the ID for the window or specified window part.
Description
Get the ID for a window part or the window itself.
Discussion
Gets the ID of different 'parts' of a window. If no part is specified, getWindowId returns the ID for the window. Once you have the ID for a window part, you can set the contents of the element by setting the innerHTML property.
Example
//get a pointer to the window object var windowObj = {dialog.object}.getWindow('MYWINDOW'); if (windowObj) { var id = windowObj.getWindowId('body'); var ele = $(id); if (ele) { ele.innerHTML = 'This is new content for the window'; } }