[delicious-dev] avar.icio.us - yet another del.icio.us posting
interface
Yoz Grahame
yozlet at gmail.com
Thu Jul 22 21:39:37 EDT 2004
avar.icio.us is yet another del.icio.us posting interface with a dash
of Javascript. It looks like the normal posting form, but has a couple
of special features:
* auto-completion in the tag box
* suggestions of related tags you've used before
To have a play with it, here's a cached page that uses my own tag history:
http://matthau.yoz.com/avar.html
Start slowly typing into the tag box and you'll see what it does.
To finish auto-completing a tag, hitting any of TAB, ESC or RETURN
will finish the word and add a space.
Clicking on any of the suggested tags will add it to the tag box and
recompile suggestions.
The number in parens next to each suggestion is the relevancy score of
that tag (just the number of total usages against the currently-picked
set of tags) - the suggestions list consists of the ten
highest-scoring tags sorted alphabetically.
*** THIS IS STILL AN EARLY BUGGY VERSION ***
*** ANY BUG REPORTS OR FEATURE SUGGESTIONS ARE WELCOME AND, IN FACT,
BEGGED FOR ***
If you want to try it for your own del account, the best thing to do
is configure and install avar.cgi and form.html (attached to this
mail) on your own webserver:
1: Edit the avar.cgi file to add your own username and password, then upload it
2: You'll also need to upload form.html in the same directory as it's
the HTML template with the JS in it - no editing required, but feel
free to play
3: Replace the "http://del.icio.us/USERNAME" in your posting
bookmarklets with the installation address
(Oh, and your webserver's Perl will need the LWP module, though
there's a good chance it's there already)
Known bugs and fidgets:
1: Autocompletion works on IE/Win and Mozilloids and very little else,
since other browsers (such as Opera and Safari) don't have the
necessary Javascript methods for selecting ranges inside a textbox.
However, if users of those browsers want to play with the stuff that
*should* work (i.e. suggestions) then there's a marked line in the JS
source to comment out. (I don't know if it'll completely work, though,
as I don't have either of those browsers to test with)
2: I'm not sure about how autocompletion looks, as it only suggests
the first match in alphabetical order (though I'm planning on fixing
this to suggest the top-scoring match). I've seen another JS
autocompletion hack which isn't as pretty but probably more useful,
you tell me:
http://www.webreference.com/programming/javascript/gr/column5/AutoComplete.htm
(type "ab" to kick it off)
3: Certain types of box edit changes (such as backspace on IE/Win, and
select+delete on all browsers) don't trigger suggestion updates. The
backspace bug in IE is really irritating - any clues welcome.
(Note to Joshua: If you're still keen on integrating this, I'll give
you a hand with the JS stuff)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avar.cgi
Type: application/octet-stream
Size: 3465 bytes
Desc: not available
Url : http://lists.burri.to/pipermail/delicious-dev/attachments/20040723/5b18fc0a/avar.obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.burri.to/pipermail/delicious-dev/attachments/20040723/5b18fc0a/form.html
More information about the delicious-dev
mailing list