Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Requirements

The website must be accessed via HTTPS.

The S4S Cloud client is written in JavaScript and takes advantage of facilities provided by modern web browsers. Although we make every effort to provide maximum compatibility, visitors using very old web browsers may experience reduced functionality.

S4S Cloud functionality can be extended with custom JavaScript. Website platforms with an easy means of client-side scripting and/or integrating with server-side functionality are likely to be able to implement advanced capabilities with less development effort.

JavaScript client

The S4S Cloud client is contained within a single minified JavaScript file. Download this file to a public location on your website, and include it on all pages by adding the following script to the HTML <head> element.

<script>(function(s4s,c,l,o,u,d){l[c]=l[c]||{};d=document.createElement('script');d.onload=function(){l[c].init(o,u);};d.src=s4s;document.head.appendChild(d);})('/path/to/s4scloud.min.js?v=1.2.3', 'S4SCloud', window, 's4scloud.service.com', 'api-key-value');</script>

Substitute the following values:

  • ‘/path/to/s4scloud.min.js’: this should be set to the location of the S4S Cloud JavaScript file. The ?v=1.2.3 parameter is not required but generally eases updates as changing this value will encourage browsers to request a new copy rather than delivering from cache.

  • ‘s4scloud.service.com’: the domain where the S4S Cloud service is hosted, in the case of the Salesforce package this will be the public site configured for S4S Cloud endpoints.

  • ‘api-key-value’: the shared API key configured for your service.

Click here (TODO) to download the S4S Cloud JavaScript client. You can also load S4S Cloud directly from a CDN. Substitute the path for an absolute URL. (TODO)

  • No labels