initialize Method

Dd570216.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.

Initializes the Loader.

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

Microsoft.Live.Core.Loader.initialize(settings);

Parameters

settings
Type: Microsoft.Live.Core..::.LoaderSettings
The settings to update.

To initialize settings of the Loader, invoke this method immediately after referencing the loader.js file. Currently, a market can be provided to load language-specific resources.

The initialize(LoaderSettings) method must be invoked prior to invoking the load(String, Callback) method of the loader.

This example shows how Japanese resources can be loaded.


            <script type="text/javascript" src="http://js.live.net/4.1/loader.js"></script>
            <script type="text/javascript">
                function onLoaded() {
                    alert("Features loaded.");
                }
            
                Microsoft.Live.Core.Loader.initialize({market: "ja-JP"});
                Microsoft.Live.Core.Loader.load("Messenger.UI", onLoaded);
            </script>
            

ExceptionCondition
ExceptionThe load(String, Callback) method has already been invoked.

Windows Live Messenger Connect

Supported in: 4.1

Windows Live Messenger Web Toolkit

Supported in: 3.7, 3.5, 3.1, 3.0

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: