Implemented by the host to create a site for the Windows Script engine. Usually, this site will be associated with the container of all the objects that are visible to the script (for example, the ActiveX Controls). Typically, this container will correspond to the document or page being viewed. Microsoft Internet Explorer, for example, would create such a container for each HTML page being displayed. Each ActiveX control (or other automation object) on the page, and the scripting engine itself, would be enumerable within this container.

Methods in Vtable Order

Method

Description

IActiveScriptSite::GetLCID

Retrieves the locale identifier that the host uses for displaying user-interface elements.

IActiveScriptSite::GetItemInfo

Obtains information about an item that was added to an engine through a call to the IActiveScript::AddNamedItem method.

IActiveScriptSite::GetDocVersionString

Retrieves a host-defined string that uniquely identifies the current document version from the host's point of view.

IActiveScriptSite::OnScriptTerminate

Called when the script has completed execution.

IActiveScriptSite::OnStateChange

Informs the host that the scripting engine has changed states.

IActiveScriptSite::OnScriptError

Informs the host that an execution error occurred while the engine was running the script.

IActiveScriptSite::OnEnterScript

Informs the host that the scripting engine has begun executing the script code.

IActiveScriptSite::OnLeaveScript

Informs the host that the scripting engine has returned from executing script code.

See Also