[Ajax] Hacking Rojo - Adding bits to feeds in Rojo
Rojo is lacking of some designs of user friendly. Why am I saying that? Sometimes we need to make an unnecessary click to get some basic but useful information of a feed. While reading stories of a feed, we probably want to take a look at the profile of it, or we also need to link to its original site. Furthermore, we would like to know the number of subscribers, unsubscribe, or rename the feed. All the stuff is in the profile of the feed, and need a click to get it.
The worse is still the slow response of Rojo. Loading a new page requires not only to fetch from server, but also needs extra time for browsers to render it. Now the script rojo.ajax.user.js v1.3 adds some bits to it. It fetches the profile of the feed in background, then displays a toggle below the title of feed. Click the toggle will show the information on the feed in Ajax way.
Download: AJAX Wrapper for Rojo v1.3 rojo.ajax.user.js
Technically, this is not an Ajax. I didn't fetch XML data from Rojo server. The data structure I can exploit in the HTML pages of Rojo is not much. Rojo didn't release API like Flickr or Google Maps, the only way to hack Rojo is to dive into its scripts. But this time I use an ugly way to reach my goal. I actually don't need XML, so I get the HTML page by calling XMLHttpRequest instead of XML data. I only need to parse the HTML text to get the piece of code about the profile and insert into current DOM tree.
Previous articles:
[Ajax] Hacking Rojo - Ajaxize more of 'Mark as Read'
[Ajax] Hacking Rojo - Ajaxize 'Mark as Read' function
[Ajax] Hacking Rojo - Slow Response of Rojo
[Ajax] Hacking Rojo - an Ajax Wrapper for Rojo
[Ajax] Hacking Rojo - Rojo is not Ajax?


Comments
yes.this is my site http://pedikvkepke.otbet.ru/ultracet/canine_ultracet.html Thanks.
Posted by: generic ultracet | February 3, 2006 03:25 PM