ydn-js origin
YUI version 2.5.2
Calling VBScript from YUI
In this example, we create a simple VBScript function to show an info box, then subscribe to a Slider's slideEnd
event to call the function.
This page will only work in Internet Explorer
CAVEATS:
- VBScript is a proprietary technology and only supported in Internet Explorer. It is not recommended to create functionality in VBScript on any site that may be viewed by other browsers. Since even in a locked down corporate intranet environment, there is often the case that users may prefer non-IE browsers, this essentially means every site. VBScript is therefore not a recommended technology for site scripting.
- Since the info box halts the browser, there may be an issue with Slider's internal state management if the interruption is fired from directly inside the
slideEnd
event handler. So the VBScript function is called from inside a setTimeout
.