Pageflakes
Jump to navigation
Jump to search
The Pageflakes API allows you to build web widgets for PageFlakes. Unlike Netvibes news UWA's they only will run in Pageflakes or alternatively loaded through Pageflakes (Pageflakes allows to export any module, so you could import it to Netvibes for example).
See also: AJAX, the introduction to web widgets and Universal Widget API (an other mashup).
Simple static Flake example
Simple Flakes with static content are really easy to produce:
- Make a valid XHTML file (no XML declaration needed)
- Add the following JavaScript code to the HEAD:
<script id="_PAGEFLAKES_Instance" type="text/javascript"></script>
- IMPORTANT: HTML will be cached. While you edit contents and make sure it looks good, just name the file *.php and rename it later to *.html for efficiency. Then shift-reload your browser.
Source: http://tecfa.unige.ch/guides/js/ex/pageflakes/hello.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sample Page</title>
<script id="_PAGEFLAKES_Instance" type="text/javascript"></script>
</head>
<body>
Hello, this is my first Pageflake.
[ ... ]
</body>
</html>
Add it to your Pageflakes page: from TECFA
Add it to your Pageflakes page: from TECFA / PHP
Simple Flake example
Links
- PageFlakes
- Pageflakes developer pack (i.e. a PDF how-to file).
- Blog (News)