WebSphere Portal, Express Beta Version 6.1
Operating systems: i5/OS, Linux,Windows


 

Changing portlet mode and window state on the client side

The client side programming model allows you to handle portlet mode and window state changes entirely on the client, rather than requiring a full server-client roundtrip.

This is currently only supported in the client side aggregation theme, and support is skin specific. To handle mode and state changes on the client, you define a function that handles portlet mode or window state changes. Refer to the following example:
<namespace>doPortletMode( /*String*/portletMode, /*DOMElement*/div)
{
     alert("hello");
}
<namespace>doWindowState( /*String*/windowState, /*DOMElement*/div)
{
     alert("hello");
}
Parent topic: Using the client side programming model for portlets Related tasks
Getting started with the client side programming model for portlets Handling portlet preferences on the client JavaScript namespacing - observing good practice
Library | Support | Terms of use |