I have what is to me an extremely complex thing that I would like JavaScript on a webpage to do. It's related to
, but I've added a new complication. I understand that this may sound fairly customized. I have a feeling, though, that for someone who programs Javascript, these issues are probably both extremely common and extremely simple, which is why I'm asking here ... since perfecting this quirk could really help my efficiency.
I manage my to-do list on a web application called
Remember the Milk. Using their Quick Add bookmarklet as a guide, I built a larger-scale version for my personal use that would let me select various tags I wanted to use consistently from menus, rather than have to remember these tags wholesale.
The question mentioned above managed to help me with one requested improvement: the ability to not need a "concatenate" button to concatenate all the tags into the "tags" field, but instead for the page to do it automatically.
However, the other aspect of what I'd like it to do is slightly more complex.
I have a number of goals -- these could also be considered projects. Ideally, what I would like to do is make one selection: that of a goal (currently the "g" variable in the document). I would like the page to then do three things (preferably updating automatically, as it currently does, if I make a change) based on that selection.
I would like it to:
(1) Add " {SelectedGoalName}" (currently the "t" variable) to the end of the task's name.
(2) Add a tag to the task's tag list (currently the "tx" variable) that corresponds to the goal.
(3) Select the appropriate destination list ID (currently the "l" variable) that corresponds to that goal.
The SelectedGoalName would be the same as the text on the menu corresponding to the item chosen. The tag would be similar but not reliably identical to "SelectedGoalName" -- for example, it might be "Mowing" versus "g-mowing". The list ID is a seven-digit number used by Remember the Milk to identify lists.
An anonymized version of the page is at
this URL. It's structurally identical; I just anonymized the locales and goals.
I know this is a complex one -- in fact, I'm unsure if this falls outside the bounds of what Ask Mefi does. But I also know that Mefites encompass many talents, so I'm hoping someone has this talent and can help me out? (I'm too poor at the moment to pay RentACoder.com.)
posted by WCityMike at 8:46 PM on September 5, 2007