onwcready Event

Fires to the containing page when the ondocumentready event fires in the behavior.

Syntax

Inline HTML <ELEMENT onwcready = "handler" ... > All platforms
Named script <SCRIPT FOR = object EVENT = onwcready> Internet Explorer only

Event Information

Bubbles No
Cancels No
To invoke Fires when the behavior has completely loaded.
Default action Runs script associated with the event handler.

Remarks

You can also use the onreadystatechange event on the custom element to check whether the behavior has completely loaded. In the handler, test the readyState of the custom element for the value complete before using any of the methods or properties of the behavior.

Example

The following example shows how to handle the onwcready event on a TABSTRIP element.


<ts:TABSTRIP 
    onwcready="alert('The loading state of the custom element is \'' +
    this.readyState + '\'.')">
   <ts:TAB TEXT="Tab 1"/>
   <ts:TABSEPARATOR TEXT="|"/>
   <ts:TAB TEXT="Tab 2"/>
   <ts:TABSEPARATOR TEXT="|"/>
   <ts:TAB TEXT="Tab 3"/>
   <ts:TABSEPARATOR TEXT="|"/>
   <ts:TAB TEXT="Tab 4"/>
   <ts:TABSEPARATOR TEXT="|"/>
   <ts:TAB TEXT="Tab 5"/>
</ts:TABSTRIP>
                

Code example: https://samples.msdn.microsoft.com/workshop/samples/webcontrols/tabstrip/tsWCReadyExample.htm

Applies To

TABSTRIP, TOOLBAR