Hi there,

constablejc a écrit :
> 2. For all future del.icio.us bookmarks,
> I have a "Post to del.icio.us" bookmarklet (_javascript_ button) on my
> browser. Can we modify that bookmarklet in such a way that clicking
> on it would automatically have the "Save as Private" checkbox checked?
>  
I don't know _javascript_ enough, so I can't give you the complete fix,
but if you add " ;private='true' " (without the double quotes, but with
the simple ones...) to the post URL, it works.
Example:
- clicking the "post" bookmarklet on the Google page will take you to
the following URL:
http://del.icio.us/siband.info?url="">
- add " ;private='true' " to it:
http://del.icio.us/siband.info?url="">
- voilà!

Now, as I said, I don't know _javascript_ enough to escape the quotes in
the bookmarklet, so I couldn't get it to work.
Someone can probably help here.


I've tried with \' or two quotes (''), but it didn't work:
_javascript_:location.href=''true\';url='';title='+encodeURIComponent(document.title)">http://del.icio.us/post?v=4;private=\'true\';url='';title='+encodeURIComponent(document.title)

_javascript_:location.href='''true'';url='';title='+encodeURIComponent(document.title)">http://del.icio.us/post?v=4;private=''true'';url='';title='+encodeURIComponent(document.title)

Ben


SPONSORED LINKS
Developer network Computer security Computer training


YAHOO! GROUPS LINKS




Reply via email to