Though not as popular as RSS, JavaScript-based syndication has some interesting possibilities and shouldn't be ignored.
The new options in Weblog II make it possible to "publish" part or all of your weblog to any other page or site. Even a static site can use it!
The attached file is an EXTREMELY simple HTML document. The head section loads a couple of stylesheets, and the body of the page only has a single tag: it loads a javascript from the server.
Download the file to your computer's desktop and look at the source (open it in a text editor). Then, open the file in your browser.
Pretty nifty, no?
The "server side" of this feature -- meaning, what you do in your Conversant site to make this work -- is just as simple as what you see in the HTML file.
- Put a macro into a new message, but use it in a javascript document.write command, like this:
document.write( "<!--#weblog.pageWrapper pageId="weblog2beta/index" jssafe="true"-->" );
- "Bind" that message, publishing it to a URL like /index.js or syndic8.js or whatever you want
- Open the Files and Folders section of the admin area, and edit the properties of your new page.
- Set the page template to "Content Only READONLY"
- Set the MIME type to "text/javascript"
- Save your changes.
- Switch to the "Options" panel of the page's properties.
- Change the page's Wrapper Template to "Bound Msg Body Only READONLY"
- Save your changes
So, most of the work is acutally done in the admin area. Total time: 5 minutes or less.
Also, the output from the javascript doesn't have to look just like the real weblog as it does in this example. The weblog.pageWrapper and weblog.days macros both allow you to override the templates used when rendering the weblog, so your javascript-syndicated template could look completely different from the main weblog page.
Perhaps not a solution to every syndication-related problem, but it's a tool worth having in your toolbelt.
Any questions?