Version User Scope of changes
Apr 10 2008, 9:13 PM EDT ryan_wetpaint 136 words added
Apr 10 2008, 9:08 PM EDT ryan_wetpaint

Changes

Key:  Additions   Deletions
The client application contains all of the client-side APIs that allow you to access BALCO functionality. For more information about the client application, view the client-side APIs documentation.

The client application requires two script tags in the HTML of your page.

Bootstrap

The client application is loaded via a bootstrap that requests Javascript and CSS resources. The bootstrap must be included in the <head> section of your page:

<script src="http://{WetpaintApiHost}/JavaScriptService/getBootstrap.do" type="text/javascript"></script>

Site Properties

Immediately following the bootstrap, you will need to set up the properties your site will use identify itself.

<script type="text/javascript">
//<![CDATA[
if( window.WPCAPI ) {
WPCAPI.setLoginTicket("{UserTicket}"); // Only required if the user is logged in
WPCAPI.setDeveloperKey("{DeveloperKey}");
WPCAPI.setNamespace("{ContentNamespace}");
}
//]]>
</script>