Technical Notes

For more information on web service authentication, see the section "Web Service Authentication" in your Spectrum Technology Web Services Guide.

For more information on enabling CORS, see the section "Enabling CORS" in your Spectrum Technology Platform Administration Guide

The following tags in the index.html drive the widget processing:
  • The <Link> tag defines the CSS (Cascading Style Sheets) that drives the index.html web page. You can remove the tag to see the effects that the CSS file defines or use your own CSS.
  • This tag defines the version of AngularJS that is being included:
    • <script src="./js/angular.min.js"></script>
  • This tag makes the widget source code available to the web page:
    • <script src="../pb-address-complete/address-complete.js"></script>
  • This tag includes the customization file (see above):
    • <script type="text/javascript" src="autoCompleteDemoApp.js"></script>
  • This tag includes the widget in the html page:
    • <pb-address-complete options="options" selected-address = "selectedAddress" city = "city" country = "country" on-select="onSelect(address)"></pb-address-complete>
  • The web server and the Spectrum server do not need to be on the same physical machine or platform. For example, you could have the web server running on Linux accessing a Spectrum Server running on Windows.