Home
Developers

Developers

  • Documentation
    • Developer Guide
    • API Reference
    • Style Guide
    • How-To
    • Troubleshooting
  • Submit a Flake
  • Support

Pageflakes Developer Guide

  • Definitions
  • Getting Started
    • Prerequisites
    • Simple Flake
    • Framework Flake Processing
    • Flake Components
      • HTML/XHTML Markup
      • Flake User Object (FUO) & Flake System Objects (FSO)
      • Flake User Object Instantiation
      • Creating a Flake that Calls a Web Service
    • Adding a Settings Tab
Home » Documentation » Developer Guide » Getting Started » Flake Components

HTML/XHTML Markup

The XHTML markup for this example contains a single element. This is a placeholder where the markup showing the current weather will be inserted.

<body>
<div id='_PAGEFLAKES_content'/>
</body>

The id attribute is prefixed with _PAGEFLAKES_. This is to prevent two instances of the same flake from having conflicting id attributes within the same generated XHTML Document. The Pageflakes framework replaces this string with a unique identifier for every flake instance on a given page-set.
For example, if this flake appears twice in a page-set, the Generated XHTML Document will look something like:

<body>
<div id='abc12345current_weather'/>
</body>

and

<body>
<div id='xyz45678current_weather' />
</body>

‹ Flake ComponentsupFlake User Object (FUO) & Flake System Objects (FSO) ›
»
  • Printer-friendly version