onMessageRendered Method

Ff748231.note(en-us,MSDN.10).gifNote:
Current information about Live Connect is now available in the Windows Live Developer Center. The information in the following sections is provided for legacy purposes only.

Provides a callback that will be automatically invoked when the UI controls need to render an application message, or when an application invokes the createTextElement(ApplicationMessage) method.

Script:  http://js.live.net/4.1/loader.js
Feature:  Messenger.Core
Namespace:  Microsoft.Live.Messenger.Messaging
 

instance.onMessageRendered(callback);

Parameters

callback
Type: Microsoft.Live.Messenger.Messaging..::.ApplicationMessageRenderedCallback
The callback to register.

An application may provide a callback that will be automatically invoked when an application message is being rendered by the UI controls, if the value returned by createTextElement()()() is null. Providing a callback is functionally the same as inheriting from the ApplicationMessage class and overriding the createTextElement()()() method.

The callback will also be invoked when an application uses the createTextElement(ApplicationMessage) method.

At most one callback can be defined. If a new callback is provided, the old callback will no longer be used. A value of null can be used to unregister any callback.

Windows Live Messenger Connect

Supported in: 4.1

Internet Explorer 8.0, Internet Explorer 7.0, Internet Explorer 6.0, Firefox 3.6, Firefox 3.5, Firefox 3.0, Firefox 2.0, Firefox 1.5, Chrome 4.0, Chrome 3.0, Chrome 2.0, Chrome 1.0, Safari 4.0, Safari 3.0, Opera 10.5

Show: