Title
Journal embedding through JSON
Short, concise description of the idea
Allow access to the content of your LiveJournal through JSON, so people can embed it in their web sites through JavaScript.
Full description of the idea
JSON is a lightweight means for passing data through JavaScript. Making LiveJournal posts available through JSON would
(
Read more... )
Comments 5
LiveJournal posts
You must enable JavaScript to see inlined content.
(Using an extra close tag to make sure that HTML parsers can cope with it.)
This manipulates a page in DOM:
Reply
I've been looking for a solution like this for quite some time; none of the embedding options suit me very well. My few comments:
Minor wrinkles sorted out, this really ought to be posted in the embedding FAQ.
Reply
var createElement = function(x) {
if (navigator.userAgent.search("MSIE") >= 0) {
return document.createElement(x);
} else {
return document.createElementNS('http://www.w3.org/1999/xhtml', x);
}
};
You can see the whole thing in operation at my soon-to-be-home-page once I finish a few items.
Is there some subtlety to making a layer like that public for others’ use? Meanwhile, here’s the source code to it:
layerinfo "type" = "layout ( ... )
Reply
However, this is frankly even better. With that source I managed to hack up a JSON source that I can use and embed in my homepage, and customise for my own nefarious purposes. Thank you!
Reply
Leave a comment