|
|
Using the Clearspring ContainerFor a basic overview of the Clearspring Container, check out the fundamentals. You don't need to do anything specific to use the Container; the Clearspring Platform loads registered widgets -- widgets that are not BLOBs shared with Launchpad On-Page -- in the Container automatically. All of the Container capabilities then become part of your widget transparently, including a built-in sharing menu.Leveraging In-Widget APIsAll widgets loaded by the Clearspring Container get access to a number of powerful APIs. Take a look at the API docs for details. Making your Widget Compatible with the ContainerAs a developer, you won't typically need to do anything special to your widget to have it work properly inside the Container. There are a few possible exceptions, however. Web-Page WidgetsWeb-page widgets really do work best when they are HTML, with or without Javascript, and do not include Java Applets or Flash objects:
Flash/Flex WidgetsFor Flash widgets, the most important thing is to watch your assumptions about the Stage. For ActionScript 2, the various global levels are also affected:
Supporting Desktop DestinationsThe Clearspring container supports desktop environments, as well as web environments. There are a few additional considerations to take into account when designing your widget to target desktop platforms. Widget Content TypesThe desktop platforms rely on the widget-type indication you provide in the console when you register your widget, with the same caveats as outlined above. Specifically, avoid putting Flash or other plugin-requiring content inside your web-page-type widgets. In addition, blob widgets created dynamically using the Launchpad On-Page API are handled as HTML/Javascript. Currently, the platform cannot detect what type of content is inside the blob, so if your blob includes flash with your HTML, it will probably render incorrectly on the desktop platforms. It is recommended to exclude the Desktop tab (see the On-Page API) when using Launchpad On-Page with Flash widgets. Flash Widget BordersOn some desktop platforms, you may notice white borders on the sides or top and bottom of your Flash widget. In order to prevent these, make sure to specify the height and width in the Clearspring console to match the size of the Flash stage EXACTLY. If you are showing the dock on the web (the default), make sure 22 pixels are added to the height of your widget in the widget console. The widget control panel should do this automatically for you. Finally, be sure to set the Flash scale mode to ExactFit or NoBorder. Background TransparencyTransparency between widget content and background (in this case, the desktop) is handled differently on the various desktop platforms. Therefore, you must be careful with non-square widget borders such as rounded corners - they may appear with a background depending on the platform they're installed to. Note that any transparency handled inside your widget is rendered correctly on all platforms.
Handling LinkoutsThe desired behavior for links in a desktop setting is to open the requested URL in the default browser. Some desktop platforms will instead replace the widget content with the content from the requested URL, or sometimes will do nothing. In order to ensure proper linking out to the default browser on all platforms, obey the following rules.
Tested BrowsersIt's our goal to support as many browser platforms as possible, to allow your widget to spread across the web without any limitations. The following browser versions have been officially certified:
If there are other browser versions you are interested in, please let us know |