<div id="MessageDeliveryStatus"></div>
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
SitePhone = SiteKiosk.Plugins("SitePhone");
SitePhone.OnMessageStateChanged = OnMessageStateChanged;
MDS_UNDEFINED = 0;
MDS_ANALYZING = 1;
MDS_ACCEPTABLE = 2;
MDS_NOT_ROUTABLE = 3;
MDS_DELIVERY_PENDING = 4;
MDS_DELIVERY_SUCCESSFUL = 5;
MDS_DELIVERY_FAILED = 6;
function OnMessageStateChanged()
{
switch (SitePhone.MessageDeliveryStatus)
{
case MDS_ANALYZING:
MessageDeliveryStatus.innerHTML = "Analyzing...";
break;
case MDS_NOT_ROUTABLE:
MessageDeliveryStatus.innerHTML =
"Message delivery not possible.";
break;
case MDS_DELIVERY_PENDING:
MessageDeliveryStatus.innerHTML =
"Message delivery pending...";
break;
case MDS_DELIVERY_SUCCESSFUL:
MessageDeliveryStatus.innerHTML =
"Message delivery successful.";
break;
case MDS_DELIVERY_FAILED:
MessageDeliveryStatus.innerHTML = "Message delivery failed.";
break;
//...
}
}
</SCRIPT>
|