In order to use any of the client functionality you have to ensure that the script library (wwScriptLibrary.js) is loaded. There are a number of ways this can be done:
- Using one of the server side AJAX controls
Any of the AJAX server controls in this control library will automatically load the wwScriptLibrary, so if you have any of these controls on a page they will be automatically loaded. - ControlResources.LoadwwScriptLibrary
If you don't have any of the control on the page you can force the server side to automatically load the script with: ControlResources.LoadwwScriptLibrary(); in your page code. This will load the library as a WebResource with GZIP compression (if available) and is preferred over directly linking the library in script code. - Linking the wwScriptLibrary directly
Finally you can of course also link the script library directly into your HTML document via <script src="script/wwscriptlibrary.js" type="text/javascript"> tag.