How to return data from json?

will rodriguez <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
I have the following codes:

<script type='text/javascript'>
//<![CDATA[
var postLink = function(entry) {
for (var j = 0; j < entry.link.length; j++) {
if (entry.link[j].rel == 'alternate') {
var postURL = entry.link[j].href;
return postURL;
break;
}
}
};

var postTitle = function(entry) {
var postTitle = entry.title.$t;
return postTitle;
};

var postThumb = function(entry) {
var post_thumbs = entry.media$thumbnail;
var default_post_thumb = '
http://3.bp.blogspot.com/-c5t2eHNHs78/VIruuqQHQ4I/AAAAAAAAAkY/a0kiJ0lJk2k/s120/no-thumb.gif
';
 
if (post_thumbs == 'undefined') {
return default_post_thumb;
} else if (post_thumbs == '[object Object]') {
return post_thumbs.url.replace("default", "0");
} else {
return default_post_thumb;
}
};

var postCategory = function(entry) {

return postCategory;
};
 
function *callback1*(json) {
for (var i = 0; i < json.feed.entry.length; i++) {
var entry = json.feed.entry[i];
var item1 = '<div class="*STYLE1*"><a href="' + postLink(entry) + '"><img 
src="' + postThumb(entry).replace("/s72-c/", "/s350/") + '"/></a><h3 
class="post-title"><a href="' + postLink(entry) + '">' + postTitle(entry) + 
'</a></h3><p class="post-category">' + postCategory(entry) + '</p></div>';
document.write(item1);
}
}
//]]>
</script>

These are my main issues... 
1. returning the category?
2. adding support for third party images?

Thank you so much for your help!

-- 
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.