PDA

View Full Version : javascript bookmarklet for del.icio.us


fogboy
05-15-2007, 02:35 PM
I'm using the following javascript bookmarklet for creating del.icio.us posts, and it works o.k., but i've been trying to augment it with "document.getSelection" and have not gotten it to work.

the code is:
javascript:q=location.href;p=document.title;void(open('http://del.icio.us/fogboy?v=3&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title),'delicious%20',%20'toolbar=no,width=740,height=700'))

and it works fine (to test of course you'd have to change the del.icio.us username in there), except it doesn't have the "document.getSelection" syntax which would make it so highlighted text on a page was put in the "notes" field. i've unsuccessfully tried about 5 different ways of writing that, based on other versions i've seen around. i would love to know exactly the right syntax to use to get this working.

thanks!

(in case it's relevant, i'm using Camino 1.0.4 on Mac 10.4.9)

[note i'm reposting this after no replies last time (few months ago) -- don't worry i won't spam the forum by reposting if no replies this time. anyone out there have ideas on this?]