This set of 4 HTML pages employ the cross-domain messaging library easyXDM in order to enable communication from an external widget to the hosting product.
The four files included are as follows:
A wrapper that is placed on the web server / domain hosting the widget.
A sample "first page" of the widget.
A sample "results page" of the widget, demonstrating that the conduit can be used on other pages as well.
A sample "host" widget page. This is the sort of code that would be placed at the widget consumer, and it can be used directly (via a web server) to see the functioning of this setup.