yml:a
Description
Creates a link to a different Open Application view, which can either be loaded in a new page view or DOM node.
Attributes
| Name | Type | Required/Optional | Description |
|---|---|---|---|
| view | string | optional | Name of application view linked to. The allowed values for application view are "YahooFullView" and "YahooSmallView". |
| params | string | optional | Parameters that are passed to the linked view. For YahooFullView, the params string is appended to the URL that is requested. |
| replace | string | optional | The ID of a DOM node that will be replaced with the output of the view or params specified. The entire node is replaced. |
| insert | string | optional | The ID of a DOM node where the contents will be substituted with the output of the view or params specified. Although the contents of the node are substituted, the node itself remains. |
Examples
The following example creates a link in the small view that enables the user to navigate to the canvas (full) view. Include this code in the small view.
The next example displays the content of the small view in the canvas view. Include this code in the canvas view.
The following example shows how to use the insert parameter
to place content in the canvas view. In this case,
the content is from the small view.
When the user clicks the "InsertContent" link,
the content in this area disappears and the content from the
small view is inserted in its place.
The following example shows how to use the replace parameter
to place content from the small view in the canvas view.
The replace parameter removes the div element,
which cannot be referenced again.
(In contrast, the insert parameter keeps
div element, substituting only the content
of the element.)
Include the following code in the small view.
The next example passes parameters to the canvas view.
The first time the user sees the canvas view,
the parameters are not passed. When the user
clicks the link created by yml:a, parameters
(such as name and perf
are passed to the canvas view and
displayed by the echo statements.
Include the following code in the canvas view.
Like the preceding example, the following example
passes parameters to the canvas view.
However, the yml:a tag in the
following example includes the insert attribute,
which inserts the response into the div element of the canvas view.
Include the following code in the canvas view.
The next example also passes parameters to the canvas view.
When the user clicks the link created by
yml:a, the response from
folder2/folder3/file2.html
is inserted into the div element "insertarea".
Include the following code in the canvas view.
More Examples:

