[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: locating syndication feeds
On Tuesday, July 17, 2001, at 12:16 AM, Morbus Iff wrote:
I tried something very similar to this today, and didn't have
much luck,
actually. I started with the Blogger bookmarklet (which opens a small
window with the current pages title/link prefilled), and modified
AmphetaDesk.
This is what I came up with:
Yeah, Blogger's version is much more complicated than yours needs to be:
javascript:window.open('http://127.0.0.1:8888/add_a_channel.html?unknown_url=
'+escape(location.href),'add_a_channel','scrollbars=no,width=475,height=300,
left=75,top=175,status=yes');
That seems to work on any page (XML or HTML), and of course it's
pretty easily modifiable.
If I click on an XML link and then click the bookmarklet it fails
miserably, and after some thoughthinking, I'm guessing it's because
browsers don't give XML a DOM that the JS "location.href" can
work with. Am
I on the mark?
Actually, I think the problem was that Blogger's version was
trying to get the currently selected text. This feature probably
doesn't work with XML, which must have been what threw it.
In this example, I was trying to create a bookmarklet that
would work with
no changes to existing sites. It'd be no effort to add a rel scanner to
various reader programs, but it still requires webmasters to
include the
code.
How would you try and get to the RSS file?
As a program writer, I'd feel skittish about giving the "dumb
users" the
idea of a feature that would mysteriously be supported on some
sites, and
ignored on other sites. They'll blame it on the software, not the site.
Put up a nice little message that says:
This site does not currently syndicate its content in RSS (?),
or if it does, it does not follow the XXX Content Discovery
Standard (?).
Please write to the webmaster and tell them to support these standards.
Here's a form letter you can use:
...
The ? marks will link to more info on the specs, the form letter
bit is optional, and you could even have your software email it
out if you wanted.
Anyone have any ideas on modding the above javascript to work?
I think the above version should work for you -- let me know if
you still have troubles, along with browser version, etc.
Hope this helps,
--
[ "Aaron Swartz" ; <mailto:me@aaronsw.com> ; <http://www.aaronsw.com/> ]