Sunday, February 18, 2007

Firebug, Prototype, Blogger & Json

Alright, I've had enough. Dealing with javascript is now too easy. Look:

<script src="javascript/prototype.js"></script>
<script src="javascript/scriptaculous.js"></script>
function render_headlines(data) {
var entries = $A(data.feed.entry);
var ul = document.createElement('ul');

entries.each(function(entry) {
var li = document.createElement('li');
var a = document.createElement('a');

window.onload = function() {
<script type="text/javascript" src=""></script>

<div id="headlines" />

... which will get the ATOM feed of this blog as JSON, call render_headlines(); and append an ul to #headlines.

1 comment:

Rasel said...

Thank you for sharing this useful post with us. I have a business of manufacturing. Where i'm sell best manufacturer product. If you want to read more please visit this website.