choose
Description
Using this method, you can return one or more values to Content Editor .
This method is used when configuring lookups. Lookups are dialogs that open in an iframe when users need to access an external source of simpleType elements. This method uses a reference to the topmost iframe with the use of the JavaScript window property top.
Example
In this call, you return an image source along with its size, as an object to Content Editor
top.choose({src: "image.jpg", width: 200, height: 100});
The choose(object) method is very important, as it is used to close the lookup and set the value(s).
Syntax
top.choose(object)
Arguments
- object
-
Object. Name/value pairs.