The /add used in the mobile version has all the fields you want, better to use that instead of the Quick Add tool. By saving this page it's quite easy to add all the functionality you want including defaults, list boxes instead of text boxes etc.

Posted at 9:40pm on November 7, 2007

raymond.bergmark says:

Here is the Firefox+Internet Explorer (maybe it works for other browsers too) javascript for the bookmarklet above (replace "#" with "javascript" followed by a ":"):

Create a toolbar button and paste all text above into "address". If you select some text before using the button the task field gets filled with that text.

In my humble opinion this bookmarklet works better than the RTM one as it allows setting all the fields in one go in one place. It's even easier than adding tasks directly at the site as things are added at different places there.

Edit the button (right-click it, choose Properties) and replace the "http://www.rememberthemilk.com/forums/tips/3133/#" in the beginning of the adress with "javascript" followed by a ":"

Posted 9 years ago

raymond.bergmark says:

I have modified this Quick Add page a bit in order to have default values and list boxes to choose from. You can find it at my homepage.

However, you'll need to modify two things before you can use it (or modify it further):
1 Have it to choose from your lists
2 Have it to choose from your locations

You can find this (and as a matter of fact even copy the code) by viewing the source code from this page.

I would suggest that you then create a bookmark that uses your version of this page. Easiest way is probably to modify the javascript above. Unfortunately I haven't managed to get the select-text-in-advance-part to work yet.

As for getting focus, I really don't know, I know very little java_script. Maybe someone else has a solution?

Lycka till westis!

Posted 8 years ago

tmech says:

this bookmarklet requires me to log in to the mobile site before I can add a task. RTM's incomplete bookmarklet posts to the main RTM site. Is there a way to use this revised bookmarklet on the main site, so I don't have to log in to the mobile site?

Posted 8 years ago

cliod says:

That is very clever, Rajjan! Thanks!!

Posted 8 years ago

raymond.bergmark says:

tmech: If you log into the mobile site you will remain logged-in for quite some time (weeks). Unless that's a problem (shared computer for example) you only need to log in once in a while.

Posted 8 years ago

fourtwoseven says:

Thank you Thank you Raiijan! This is a lifesaver!

Posted 8 years ago

raymond.bergmark says:

Glad I saved your life ;-)

Posted 8 years ago

tafkaj says:

This is really helpful! It's also a good idea to escape the URL so that complex URLs (such as URLs to specific messages in Gmail) aren't chopped short: just replace +location.href with +escape(location.href);

Posted 8 years ago

lcompean says:

I do but I don't understand what you guys did.. probably cause I just fell into the HTML scripting wagon. This is a pop up possibly a widget-like thing -does it direct to my account automatically if I open up a RTF page and then copy the Web page address and place the address in href area? I think I get that much but can you go alittle further and highlight an example of what the string I'm looking for looks like too? like a before and after.

It's for desktop versions only?- I'd copy this to a text doc and save as a html right so I can open in a browser page by clicking the icon right?

Sorry~ not afraid to crash my computer... just rather not do it itf I don't have to...thanks guys!

Posted 8 years ago

lcompean says:

Okay I got it and added a couple more drop downs but one thing still escapes me-- I can't get the notes section to show up correctly... did anyone else get that cut and paste script done correctly? Pls, pls pls, post it, thanks!

Posted 8 years ago

bay879 says:

Thanks, Rajjan!!!

I dusted off my java_script, and figured out how you can auto-fill the form, and took care of some of the other requests above (focus on the task name) so now everything seems to work pretty well and neatly.

Whether adding a web item or not, I find this solution preferable to using the RTM interface -- I can easily pop it up this window no matter what page I'm on whenever I think of a task. For this reason, I've actually created two pages, "addNew" (add a general task) and "addThis" (add specific info from this web page). The below relates to "addThis":

Note to all: as discussed above, you must host your own "addThis" web page for this all to work, but there are plenty of free places on the web that you could do that. I've tested everything in FireFox 3.0. Other browsers may not work.

First, my "ADD_THIS to RTM" java_script in my bookmarks tool bar uses the selected text as the due date, the page title as task name, and URL as url:

Now the HTML page - I've added a "name" to the form to be able to address its elements easily, and I've added java_script at the end of the page that reads the variables from the URL (the script above will actually request "addThis.html?url=TheURL&name=pageTitle&due=selected_text). Demo file can be found at:

My general "ADD_NEW to RTM" bookmark script doesn't pull any info off the page, and my html page doesn't have java_script to set the fields automatically, so I just get a blank slate to fill in. Whereas on my addThis page I have a few tags that I use for web items in a drop-down, addNew just has an empty text box. But it's basically the same, just pared down a bit.

The addNew java_script is
java_script:(function(){h='www.myServer.com';p='/myDirectory/addNew.html';cp='http://'+h+p;w=window.open(cp,'addwindow','status=no,toolbar=no,width=250,height=560,resizable=yes');setTimeout(function(){w.focus();},500);})();

(again, remove the "_" in java_script)

Posted 8 years ago

bay879 says:

Here is a demo file. The free web host adds some of their own junk into the html, so the link in the prior post above is useful for getting the actual HTML file, but this suffices as an example.

Did anyone ever find out how to get the "Notes" entry to show up in the marklet?

Posted 7 years ago

andrewski(Remember The Milk) says:

I'm returning to this page for the second time (to share this bookmarklet with a friend) and I just wanted to say thanks for the few iterations of this bookmarklet!

It may sound silly, but I've all but replaced my todo tag in Delicious/Firefox with actual tasks. It's great to have everything I need to do in one place, regardless of medium. :)

Posted 7 years ago

leah.shalom says:

Thanks to all for the bookmarklet - it is almost as good as having Quicksilver on the pc.

Posted 7 years ago

raymond.bergmark says:

Thanks to bay879 and ryankennedy for adding the final touches to the javascript, it's now perfect! Let's see when RTM updates their Quick Add bookmarklet ;-)

Posted 7 years ago

tomvanbraeckel says:

Useful tip, thanks !

Posted 7 years ago

vjcamarena says:

frankly, the main contributors deserve a free pro membership... only ryankennedy doent have one, though. thanks all, this is great!

Posted 7 years ago

batman697 says:

Is there any way to add auto complete on the tags in these bookmarklets?

Posted 7 years ago

andrewski(Remember The Milk) says:

I don't think autocomplete works at all on the mobile site, but I've noticed that Firefox's autocomplete works for tags I've previously added to other tasks.

Posted 7 years ago

batman697 says:

Thanks for the info

Posted 7 years ago

hakeemshabazz says:

Two questions about ryankennedy's code.

1) How can I change the default list from Inbox?
2) Is it possible to have the window close after hitting the 'Add Task' button?

Posted 7 years ago

andrewski(Remember The Milk) says:

hakeemshabazz,
1. I assume it's based on the Inbox being your default list. What if you change that on the Lists tab of your Settings?
2. Not currently; it simply uses the mobile interface (which doesn't do that).

Posted 7 years ago

hakeemshabazz says:

Thank you. I wonder why the RTM team hasn't incorporated everyone's hard work into an official update to their bookmarklet (that doesn't use the mobile login)?

Posted 7 years ago

benb says:

Great tweak to the bookmarklet.
I want to have the name field focus, but don't want to bother hosting my own version of the page. Can anyone tell me why this doesn't work (the name field is the first instance of an input element on the page).

I didn't find this thread when I searched, so re-invented the wheel!
however the version I've made here works as a local html file which then pre-populates an email using the mailto: tag, that way it goes into your outbox and so works offline too.

None of these work for me (Firefox 3.6.27 on Windows, behind a proxy). The popup always asks for authentication, then opens a blank form.

Posted 4 years ago

bgoodr says:

I came up with an alternative bookmarklet that uses a Gmail compose window instead of the standard bookmarklet. Find it described at http://bgoodr.blogspot.com/2012/10/gmail-rtm-bookmarklet.html

This allows me to add the URL into the field, but also allows me to type in additional notes to be attached to the task to create. Alas, it does not provide auto-completion for tags.

Posted 4 years ago

axehandle says:

How many years have people been trying to work around this? RTM: Just add support for a hidden URL field in the normal QuickAdd tool. That way interested parties can add the "&URL=" bit to their bookmarklet without disrupting the existing flow.

Posted 3 years ago

cobrastyle says:

bgoodr:

This is a terrific variation on the bookmarklet, which has been giving me problems lately. Just wanted to say thanks for writing it up.

Posted 3 years ago

krvermeulen says:

The bookmarklets are awesome and also work fine in Chrome. Is it possible to select a default list from the bookmarklet? I mainly use the bookmarklet to add articles to a 'read later' list, which I know have to select everytime I click the button. Thanks.