With the javascript SDK you can easily integrate Spreaker with your website. What's this?The SDK enables cross site XHR communication from your website and the Spreaker API. It's a cross browser implementation based on HTML5 ( on supported browser ) and Flash ( oldest browser ). Features:
Getting StartedAdd the code to load the javascript library in your page: <html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script> function onLoad() { // Add your code here ... } </script></head><body onload="onLoad()"> <div id="sp-root"></div> <script type="text/javascript" src="http://static.spreaker.net/js/sdk_client.js"></script></body></html>
Info To obtain information about the Javascript SDK, you only need to call the method SP.info() Example: console.debug(SP.info());Output: { version: "20110131-000"} |
