четверг, 19 ноября 2009 г.

Class Browser

function onEdit()

onSubmit?

OnPost or OnNew


Class Browser

Access dialogboxes

From Service Base

This class provides access to Google Apps specific dialogboxes.

Methods:

MethodReturn ValueDescription
msgBoxStringPops up a dialog box with an OK button in the user's browser.
inputBoxStringPops up a dialog box with a text input box in the user's browser.

method msgBox(prompt)

Pops up a dialog box with an OK button in the user's browser.

Arguments:

NameTypeDescription
promptStringtext to be displayed in the dialog box

Return Values:

TypeDescription
StringText of the button that is clicked by the user.

Examples:

// The code below will display "hello world" in a dialogbox
Browser.msgBox("hello world");

method inputBox(prompt)

Pops up a dialog box with a text input box in the user's browser.

Arguments:

NameTypeDescription
promptStringtext to be displayed in the dialog box

Return Values:

TypeDescription
StringText entered by the user.

Examples:

// The code below will return the user's input
var name = Browser.inputBox("Enter your name");

Комментариев нет:

Отправить комментарий