Quote:
|
A blogger.com page is not in my domain, of course. I'm not clear why that's important - isn't the purpose of RSS to read/publish to other pages?
|
--------------------------------------------
This is important because the tools used to retrieve the rss feed on the client-side are themselves restricted to a single domain, particularly the xmlHttpRequest object. While true that the intent and spirit of rss is a free-flow of information, browsers have yet to embrace and facilitate this flow.
There are however several possible workarounds. The old standard was using your own server to escape/xslt the code into javascript, which can then come from any domain. A free and easy workaround is now available through yahoo pipes. you can easily add multiple rss feeds into one, and retrive the combined stream as JSON.
JSON can come from anywhere, whereas XML must come from you.
Another workaround i don't hear much about, but have used in past uses a client-side page to mimic the functionality of a server. If the data doesn't change every 30 seconds (most feeds don't), you might consider simulating a server on you own pc. Active desktop webpages can pull data from any domain. The page should then convert the xml to json, and upload it to your server. Use a setTimeout or a meta-refresh to reset the page, and have the update bound to onload.
If i were just getting started, i would checkout yahoo pipes first. i think they even have examples of what you want to do.
you can also use a google widget to accomplish the same thing if you don't mind a small logo.
i think that once you overcome the 'domain dilema' you should have little trouble finding examples of json>html.
ex: document.getElementById("rssLink1").innerHTML=RSS.item[0].title
i hope this helps somewhat, i've been down the same path, and know it can be a bear.