AttachDispatch Method
The AttachDispatch method permits referencing an object through the dialog HTML page.
Syntax
SKHtmlDialog.AttachDispatch(newname, obj)
|
Parameters
newname |
String that contains the new name of the object. |
obj |
Object to make available in the dialog. |
Return Value
Remarks
Examples
When the Payment Module of SiteKiosk is active, the following example permits using the currency formatter object from within the dialog HTML page.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
mycfm = SiteKiosk.Plugins("SiteCash").CreateCurrencyFormatter();
mydialog = SiteKiosk.SiteKioskUI.CreateHTMLDialog();
mydialog.Border = true;
mydialog.ScrollBars = true;
mydialog.Sysmenu = true;
mydialog.Title = true;
mydialog.Width = 300;
mydialog.URL = "http://www.myserver.com/mydialog.html";
mydialog.AttachDispatch("mycfm", mycfm);
mydialog.ShowDialog();
</SCRIPT>
|
Applies to
SiteKiosk v5.0 (and later versions).
Back to top