Forums

Discuss all things Remember The Milk.

menu

Accessing Atom feed using JavaScript

dws90 says:
I'm trying to write a small Greasemonkey-esque script for Fluid to make the Dock Icon display the number of incomplete tasks.

I have practically no experience with this sort of thing, so here's what my mind came up with: access the Atom feed for an "All tasks" list, do a quick regex search to count the number of tags, and set it to display that number on the dock. Everything works perfectly - except for actually retrieving the data.

I have Private Feeds enabled, and have supplied the script with the feed URL. The URL works fine if I put it in the Firefox address bar - I get an Atom feed of my tasks. When I try to access the same URL using a XMLHttpRequest, the request instead gets the source for the "You don't have JavaScript, use the mobile version" page. I don't want JavaScript - I want the feed.

I tried it with both http and https, as well as both private and public lists. I also tried RSS, to no avail. I glanced at the API, but I think that's overkill in this situation (and it looks like there may be problems if I simply hand out script on the Internet, which I plan to do if it ever works.

I realize that this may be beyond the support you're willing to offer, but I'd appreciate any help you can give me.

Summary: Trying to access feed via Ajax takes me to "You don't have JavaScript" page. Help?
Posted at 4:35am on April 13, 2008
dws90 says:
As per the laws of forums post, I figured out what was causing the problem shortly after posting - there was a rogue variable attaching itself to the URL. I'm now getting another error, but I also get it when I try to access Google, so I don't think it's a RTM problem.
Posted 15 years ago
This topic has now been closed automatically due to a lack of responses in the past 90 days.