ForumsQuestionsToodledo bookmarklet not working in Gmail - plans to update?


Toodledo bookmarklet not working in Gmail - plans to update?
Author Message
Geoff Peters

Posted: Aug 25, 2015
Score: 0 Reference
Dear Toodledo,
A few months ago, the Toodledo bookmarklet browser plugin stopped working in Gmail. So being a software developer by profession, I created my own bookmarklet for Toodledo that works in Gmail, and made it available for free (open source). http://geoffmobile.com/blog/contact/new-toodledo-bookmarklet

Having never received any official response from Toodledo about my bookmarklet, I wanted to confirm that I can still use it, even after the new redesign of Toodledo? Or if not, can my code (which I provide on my website above) be incorporated into the official Toodledo bookmarklet?

Please feel free to contact me at [email protected] if you would like to reach me directly.

Thanks,
Geoff Peters
http://www.linkedin.com/in/gpeters
Jake

Toodledo Founder
Posted: Aug 25, 2015
Score: 0 Reference
Geoff,

Thanks for making this new bookmarklet. We are looking into incorporating it into the official version. Upon a quick look I couldn't figure out how you were able to populate the note field. Can you please enlighten me :)

-Jake
Geoff Peters

Posted: Aug 26, 2015
Score: 0 Reference
Awesome, thanks Jake.
Yes I was able to update the note field by using the following code:

w.postMessage("note:Please wait" + pd,"https://www.toodledo.com");

for a few seconds, adding a period each time the function is executed,

and then after 6 times the function is called, I actually post the message into the note field:

w.postMessage("note:" +
encodeURIComponent(top.document.location.href + "\n\n" + top.document.getElementsByTagName("title")[0].innerHTML.trim()),
"https://www.toodledo.com");


The reason I do the Please wait, is because there is no way to be notified when the Toodledo window actually is ready for input (due to browser security, you can postMessage to the window, but can't read anything from it inside the bookmarklet).

- Geoff
Jake

Toodledo Founder
Posted: Aug 27, 2015
Score: 0 Reference
Maybe it would be easier if I made it possible to include the title in the window.open call via a param you can pass to the page. Something like this. What do you think?

javascript:(function () {
var n = encodeURIComponent(top.document.location.href);
var w = window.open("https://www.toodledo.com/tasks/quickadd.php?note="+n, "_blank",
"toolbar=0,location=0,menubar=0,height=328,width=840");
})()


This message was edited Aug 27, 2015.
Geoff Peters

Posted: Aug 27, 2015
Score: 0 Reference
Hi Jake, yes that would work well. That way, there would be no need to show "please wait".

It might be nice, in addition to populating the top.document.location.href, to also add the title of the document into the notes field, which I found in Gmail usually contains the email subject.

For example:

javascript:(function () {
var n = encodeURIComponent(top.document.location.href + "\n\n" + top.document.getElementsByTagName("title")[0].innerHTML.trim());
var w = window.open("https://www.toodledo.com/tasks/quickadd.php?note="+n, "_blank",
"toolbar=0,location=0,menubar=0,height=328,width=840");
})()


the "\n\n" adds a couple of line breaks into the note field, and then top.document.getElementsByTagName("title")[0].innerHTML.trim() grabs the title of the page and adds it into the note as well. This is what I do in my "bookmarklet 3" code on my page. I find that by adding the page title it saves me having to copy and paste the title of the email manually into the notes field.

Another suggestion that someone had was that once the popup opens, and the user clicks "Save", there might be a short delay to show a confirmation such as "Task Saved" and then the popup window would automatically close. Several people have asked me if I could modify my bookmarklet to automatically close the window, but this needs to be done on the toodledo side :)

Cheers,
Geoff
Geoff Peters

Posted: Aug 27, 2015
Score: 0 Reference
btw, I really like the updates you've been making to the Task screen, the new visual design looks great.
Jake

Toodledo Founder
Posted: Aug 27, 2015
Score: 0 Reference
Ok, give it a try (the second one):

http://www.toodledo.com/tools/bookmarklet.php
Geoff Peters

Posted: Aug 29, 2015
Score: 0 Reference
Hi Jake, it doesn't seem to be working for me. Was the quickadd.php script updated to parse the note URL parameter, and populate the Notes field from that parameter? Also I get the error below the popup: "Oops. It looks like your web browser is not loading our website correctly.

If this message does not go away, please try refreshing the page.

If that doesn't work, please create a support ticket."

I tried it in the latest Google Chrome on a pc.

Thanks Jake, looks promising :)
Geoff


This message was edited Aug 29, 2015.
Jake

Toodledo Founder
Posted: Aug 31, 2015
Score: 0 Reference
It should be fixed now
howardksmith

Posted: Jan 18, 2016
Score: 0 Reference
The bookmarklet appears to be 'out of order' again. I uninstalled and reinstalled to no effect just now. The pop up opens but never resolves with content?
Jake

Toodledo Founder
Posted: Jan 19, 2016
Score: 0 Reference
Are you using the "in browser" or "popup" version of our bookmarklet?
You cannot reply yet

U Back to topic home

R Post a reply

To participate in these forums, you must be signed in.