On 12/1/05, joshua schachter <[EMAIL PROTECTED]> wrote:
When you post to to /user from the bookmarklet, it passes url and title, which gives you a posting form.

For the record - and because others may appreciate the functionality as much as I do - I use a modified version of the bookmarklet which adds tags = the search terms I used to find the site I'm posting, if I've navigated there directly from a Google search page.

To wit:
_javascript_:var t,q=document.referrer.match(/q=([^&]+)/);if(q){t='&tags='+q[1];}else{t=''}location.href=''+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+t;

(Take out line breaks, and replace "user" with your del username.)  

The posting form then passes url, description, notes and tags (title becomes description) and only url and description are required to post. title is ignored.

The /post url allows only a title and url and redirects to the same place the /user page does, with just a title and URL.

We require the username in the URL to post to prevent XSS hacks.

After a bit of trial and error, I think I understand how they work.

Again: There isn't any documentation of this, is there? Maybe worth adding a word or two to http://del.icio.us/help somewhere to save others the trouble of having to figure it out for themselves.

So you can suggest the eventual description (use &title=) and I do not allow people to pre-suggest tags so as to not allow owners to bias the data.

This may be more than you want to get into here, but I am curious to understand what sort of "bias" you are afraid of. What negative effects might arise - very concretely - if users were directed to a posting form that included tags someone else had submitted?...

In particular, I am curious whether you are concerned about "the relationship of users to their tags?" I.e., are you concerned that users would "not tag as well" in some sense, if they were not tagging all of their posts themselves?...

Tks,
Matthew 

Joshua

Matthew Weymar wrote:
A couple of questions:

I've noticed that

http://del.icio.us/userX?url="" spreadsheet , e.g., works - in the sense that it succeeds in passing the URL, title *and* tags to the posting GUI - while this doesn't:
http://del.icio.us/post?url="" spreadsheet; it leaves off the tags.

Is there a (good) reason for this?

Also, why is it not possible to post a "&description="?

Also, I am aware of http://del.icio.us/help/api - and http://del.icio.us/help/api/posts, in particular - but this does not seem to address URL construction per the examples above.

Is URL construction per ex's above documented anywhere?...

Bottom line: Is it possible to write a link that will pass a URL, title *and* tags (and ideally also description) to del's posting GUI *without* knowing a user's del username?...

Thanks,
Matthew

_______________________________________________
discuss mailing list
[email protected] http://lists.del.icio.us/cgi-bin/mailman/listinfo/discuss


-- 
joshua schachter
[EMAIL PROTECTED] http://del.icio.us/joshua






--
www.weymar.com
_______________________________________________
discuss mailing list
[email protected]
http://lists.del.icio.us/cgi-bin/mailman/listinfo/discuss

Reply via email to