Skip to main content
Version: 11.2

$.udb.context()

note

This article is about the context() function of the udb object, and its resulting UdbContext object.

$.udb.context()

Returns a UdbContext object corresponding to the specified frame context.

Syntax

$.udb.context( *context* )

The optional context refers to the root context if it has the value '' (empty string). A subframe within the root context is referred to by the name of the frame. In context, names of frames contained in frames are separated from the name of the containing frame by a forward slash:

$.udb.context('MyFrame/SubFrame');

If omitted, the function returns the current context instead, which is the root context if no other context is currently being used.

The UdbContext object contains several functions which can also be called from the $.udb object directly. However when called from this object, these functions are executed in its corresponding frame context directly.

See the UdbContext object for more information.

Examples

$.udb.context('ApplicationFrame');