The WinJS namespace provides special Windows Library for JavaScript functionality, including Promise and xhr.
Note All Windows Library for JavaScript namespaces are listed together with the Windows Runtime API namespaces. This page provides only information about the WinJS namespace, not general Windows Library for JavaScript information.
The WinJS namespace has these types of members:
Objects
| Object | Description |
|---|---|
|
An error object. | |
|
Provides a mechanism to schedule work to be done on a value that has not yet been computed. It is an abstraction for managing interactions with asynchronous APIs. For more information about asynchronous programming, see Asynchronous programming. For more information about promises in JavaScript, see Asynchronous programming in JavaScript. For more information about using promises, see the Promise sample at Windows Store app samples. |
Properties
| Property | Description |
|---|---|
|
Can be set to show the results of a validation process. |
Functions
| Function | Description |
|---|---|
|
You can provide an implementation of this method yourself, or use WinJS.Utilities.startLog to create one that logs to the JavaScript console. | |
|
This method has been deprecated. You should use WinJS.Binding.optimizeBindingReferences instead. | |
|
Wraps calls to XMLHttpRequest in a promise. |
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
Build date: 12/5/2012