Embedded JavaScript API
The Embedded JavaScript API is for use by integrators using HotDocs Embedded to place a HotDocs browser interview inside an IFRAME on the host web page. It lets you access to the full power of the HotDocs JavaScript API for customizing browser interviews, using the EasyXDM library for asynchronous communication with the interview (and vice veras) in a cross-domain-safe manner.
Objects

  ClassDescription
Public classHD$
The HD$ object exposes methods for creating, communicating with and controlling the IFRAME element in which a HotDocs Embedded interview runs. It encapsulates most of the functionality of the traditional HotDocs JavaScript API, but adds the facility for asynchronous call-backs as is necessary for cross-frame messaging.
Public classCode exampleHDInterviewOptions
This object, if you define it in the global scope in JavaScript, will be used by HotDocs during interview initialization. Any properties you leave off your HDInterviewOptions object will inherit the default behavior. Likewise, if you do not declare an HDInterviewOptions object at all, all properties will inherit the default behavior as dictated by the server.
Remarks

Note: In our usage of the EasyXDM library, each callback serves one of two purposes -- it is either an event handler or it is a continuation callback for an asynchronous call. In order to avoid confusion, we use the term "handler" for the former and "callback" for the latter.