Thursday, April 19, 2007

AJAX Label - Tuned 加強版

AJAX Label from Deepak 非常適用於帖數多的部落格。
由於AJAX Labels每次只抓取和標籤有關的帖子,因此就算帖數再多也不會造成下載拖牛車的情形。
我為一不滿的部分是AJAX Lables所顯示出來的資料中,相關標籤無法被click。
經過一番研究後,我將之改成所有傳回的相關標籤都可以被連結到新的標籤搜尋。

The AJAX Label from Deepak is great!
Especially if you have a couple hundreds of posts in your blog.
Since it only retrieve the label you chose from Blogger, it is capable to deal with large blogs.
But the label list in the result entry is not click able.
I took the liberty to add this feature into original code.

The file is ajaxlabels.js

find the line
catdisplay.innerHTML+=xentry.category[j].term;

and change it into
catdisplay.innerHTML+='<a href="javascript:getCat(\'' + xentry.category[j].term + '\')" >'+xentry.category[j].term+'</a>';

1 comment:

Deepak said...

Thanks for the link. :)