You’ll need to pass the URL to your hosted version of the applet in the csPageOptions as demonstrated below.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- | |
Include the script anywhere on your page, usually in the head | |
(don't forget to replace `localhost-only` with your CloudSponge key) | |
--> | |
<script src="//api.cloudsponge.com/widget/localhost-only.js"></script> | |
// extra widget configuration | |
cloudsponge.init({ | |
// change the URL below to use your own hosted copy of the applet | |
// Follow @CloudSpongeTech for notifications of code changes | |
appletUrl:'https://api.cloudsponge.com/objects/ContactsApplet_signed.jar' | |
// NB: Your copy of the applet must be hosted on the same protocol as the address_books.js script. | |
// This establishes trust with the browser when launching Java and prevents browser | |
// security warnings when loading the applet. | |
}); | |
</script> | |
</head> | |
<body> | |
<a class="cloudsponge-launch">Add from Address Book</a> | |
<textarea class="cloudsponge-contacts"></textarea> | |
</body> | |
</html> |