 | wcitypoe says:This is a bookmarklet you can use to create a task based on the webpage you're currently visiting. Thanks to the forum's filters, please replace the "#" with the word "javascript" followed by a colon; also, replace the "list=999999" with whatever the ID number of your destination list is (you can determine this via the Print button).
#popw='';name='';priority='';due='';repeat='';estimate='';tags='';url='';add='';x=document;y=window;if(x.selection){name=x.selection.createRange().text;}else if (y.getSelection){name=y.getSelection();}else if (x.getSelection){name=x.getSelection();}var name = prompt("Describe the task to do.", "");var priority = prompt("Priority? 1-3, 4 for normal.", "");var due = prompt("When does this need to be done by?", "");var repeat = prompt("How often does this repeat? Hit Return if one-time.", "");var estimate = prompt("How long will this take you? Hit Return to ignore.", "");var tags = prompt("What tags to assign?", "");var add = "\"Add Task\"";popw = y.open('http://m.rememberthemilk.com/add?name=' + escape(name) + '&list=999999&priority=' + escape(priority) + '&due=' + escape(due) + '&repeat=' + escape(repeat) + '&estimate=' + escape(estimate) + '&tags=' + escape(tags) + '&url=' + escape(location.href) + '&add=' + escape(add),'taskForm','scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes');if (!document.all) T = setTimeout('popw.focus()',50);void(0);
Alternatively, here is a speed version that will not prompt you at all. It uses the page's title as the text of the task, assigns it a low priority (you could replace the 3 with a 4 for no priority), gives you a due date of tomorrow, no repeat or estimate values, and a "@url" tag, and of course, as with the above bookmarklet, attaches the page URL to the task. If you find you need something more exotic, it should be easy to figure out what you need to substitute. Same deal with the "#" as above.
#popw=window.open('http://m.rememberthemilk.com/add?name=' + escape(document.title) + '&list=730842&priority=3&due=tomorrow&repeat=&estimate&tags=' + escape('@url') + '&url=' + escape(location.href) + '&add=' + escape('\"Add Form\"'), 'taskForm','scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes');if (!document.all) T = setTimeout('popw.focus()',50);void(0); Posted at 6:48am on November 17, 2007 |