showModalDialog

This function displays a modal dialog box.

Syntax

function xweb.application.showModalDialog(
source : String, 
title : String, 
features : String
) : Object

Parameters

source   A string that specifies the URL of the document to load and display. Files in the add-in directory must be prefixed by addin:.

title   The title to be displayed in the title bar of the modal dialog box; title cannot be null or the empty string ("").

features   A string that specifies the window properties for the dialog box, using one or more of the following semicolon-delimited values:

  • **dialogHeight:**sHeight   Sets the height of the dialog box window in pixels.

  • **dialogWidth:**sWidth   Sets the width of the dialog box window in pixels.

  • resizable: { yes | no | 1 | 0 | on | off }   Specifies whether the dialog box window has fixed dimensions. The default is no.

  • scroll:{ yes | no | 1 | 0 | on | off }   Specifies whether the dialog box window displays scrollbars. The default is yes.

Note

Do not define units for dialogHeight or dialogWidth.

Returns

This function returns a modal dialog box.

See Also

Concepts

application
application Members
xweb

  Copyright © 2011 by Microsoft Corporation. All rights reserved.