widget-examples: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
m ()
m (added contributors section)
Line 1: Line 1:
= widget examples =
== Contributor(s) ==
* Kevin Lawver
* ...
== Apple's Dashboard ==
== Apple's Dashboard ==

Revision as of 23:31, 29 September 2005

widget examples


  • Kevin Lawver
  • ...

Apple's Dashboard

  • Uses an XML Manifest file to specify data about the "widget" (width, height, thumbnail image, title and version).
  • No requirements for markup around widgets.

Dashboard Example (plist)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
        <string>AIM Fighter</string>
        <string>AOL Fighter</string>

AOL's Channel Content Modules - Sports example

  • Each module (widget) has a markup envelope and some required elements that make it a module and allow for consistent styles across products.


<div class="module themedList">
    <div class="header"><h3>Kevin's List Of Fruit</h3></div>
    <div class="body">


  • (need someone else to fill this in, have never built one or taken them apart)


  • Spec
  • SOAP envelopes to transport modules, but there is no specific formatting required for the actual content of the "portlet" (module or widget).

Module Response Example

<urn:getMarkupResponse xmlns:urn="urn:oasis:names:tc:wsrp:v1:types">
    <urn:mimeType>text/html; charset=UTF-8</urn:mimeType>
      <form method="post" 
        <table border="0" width="100%">
            <td>Enter Stock Symbol</td>
            <td><input name="symbol"></td>
            <td><input type="submit" value="Submit"></td>
    <urn:preferredTitle>Portfolio Manager</urn:preferredTitle>