Google Docs + Gmail Addons

By The Dot Last update Feb 27, 2008 — Installed 3,026 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 7 posts, 4 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
odin333 User

Hi The Dot

Firstly, I have to thank you for all of your great gmail addons. I don't need to lug around a laptop any more, just need a thumb drive with firefox portable loaded with all of your scripts. Really awesome.

I seem to be getting the same error that nka is getting with your Gmail addon for Google Docs. It worked fine right after I installed it in Firefox portable 2.0.0.14, but the second time I tried to bring it up it gave me the same garbled message. I also tried it in Firefox 3.0.1 and I still get no response. I also tried copying and pasting your new code in place of the old code in the greasemonkey script file and it just made the Google Documents link disappear. I switched back to the old code again and the link came back, but so did the error.

Thanks for your help!

 
The Dot Script's Author

hi nka
thanks a lot for coming back here and reporting this. i really appreciate it.
the problem is that i can't get this error to occour. ive tried it on firefox 2 (2.0.0.14) and the latest version of greasemonkey.
this seems to work fine for me.
could you please tell me what version of firefox you are using? (note that there are currently some problems with firefox3beta5 that affect all scripts using the gmailAPI).
ive tried to remake the gadget link.
please try to replace the existing source of this particular script with the following.

// ==UserScript==
// @name           Google Docs + Gmail Addons
// @namespace      http://exstodot.blogspot.com
// @description    Adds Google Docs to Gmail
// @include        http://mail.google.com/mail/*
// @include        https://mail.google.com/mail/*
// @include        http://mail.google.com/a/*
// @include        https://mail.google.com/a/*
// ==/UserScript==

GmailAddons.registerAddon(
{
	id: 'tdDocs',
	name: 'Google Docs',
	url: 'https://docs.google.com/API/IGoogle?up_numDocuments=5&upt_numDocuments=enum&up_showLastEdit=1&upt_showLastEdit=bool&lang=en&country=us&.lang=en&.country=us&synd=ig&mid=0&ifpctok=1212920066200425557&parent=&libs=4lLBv0e6_zM/lib/libcore.js,sKgORJ-YRBw/lib/libdynamic-height.js',
	indicatorLabel: 'Documents',
	position: 'right'
});

maybe this will work (?)
again, thanks.

 
nka User

@dot: Here is the latest error:

error: unknown output type: 'js',--http://userscripts.org/scripts/review/23304'

 
nka User

@dot: As per your request on the main Gmail+addons page, I am posting my response here.

I have installed the Gmail addons + Documents on multiple computers both Mac and PC's, and am having the very same issue as previously described.

This does not seem to be a one time thing, any suggestions?

 
nka User

Weirdest thing, first the addon was working, and all of a sudden this pops up in the sidebar when the Documents button is clicked:

/* Copyright 2007 and beyond, Google Inc. To use gadgets on your own site, visit http://www.google.com/webmasters/gadgets. To create your own gadgets, visit http://www.google.com/apis/gadgets */(function(){var c=document.bgColor;var r,g,b;if(c.length!=7){r=g=b=1;}else{c=c.substring(1,c.length);r=parseInt(c.substring(0,2),16)/255;g=parseInt(c.substring(2,4),16)/255;b=parseInt(c.substring(4,6),16)/255;}var bgcolor=((r+g+b)/3<0><>\"]/.test(c)?c.replace(/&/g,"&").replace(/</g>/g,">").replace(/\"/g,"""):c};j.prototype.b=function(c){var a="<iframe>"};j.prototype.k=function(c,a){try{return c.frames[a]}catch(b){return null}};j.prototype.e=function(c){var a=document.createElement("iframe");for(var b in c)a.setAttribute(b,
c[b]);return a};j.prototype.h=function(c,a){var b=this;setTimeout(function(){document.body.appendChild(b.e({id:c,name:c,src:a,width:0,height:0,frameBorder:0}))},0)};j.prototype.p=function(c,a){var b=this;document.write(b.b({id:c,name:c,src:a,width:0,height:0,frameBorder:0}))};j.prototype.g=function(c,a){var b=[],f=c.length,d=0;while(d<f><f><3>
window[c]=new a;for(var d=0;d<s>
"_"+(h+k),i+"#"+o[k]);e.c[a]+=s}};g.prototype.n=function(a,b,f){var d=this;d.o(a);d.m[a]=window.setInterval(function(){d.u(a,b)},typeof f=="object"&&f.pollingInterval||IDICommon.IDI_DEFAULT_POLLING_INTERVAL)};g.prototype.o=function(a){var b=this;window.clearInterval(b.m[a]);b.m[a]=0};g.prototype.w=function(a){this.r=a};g.prototype.z=function(a){this.s=a};g.prototype.d=function(a){return this.s||a.replace(/([^:\/]\/).*$/,"$1ig/idi_relay")};g.prototype.u=function(a,b){var f=this,d=window.frames[a];
if(d){var e;while(e=IDICommon.k(d,a+"_"+f.i[a])){try{if(e.location.href=="about:blank")break}catch(h){break}f.f[a]+=IDICommon.j(e.location.href);++f.i[a]}var i=f.f[a].split("$"),m=i.length-1;if(m>0){f.f[a]=i[m];for(var n=0;n<m>
width:f,height:d});h.i[b]=0;h.c[b]=0;h.f[b]="";h.t[b]=a;var t=[];if(typeof o=="object")for(var p in o)t.push(encodeURIComponent(p)+"="+encodeURIComponent(o[p]));if(typeof n=="function"){t.push("idi_hr="+encodeURIComponent(h.r));h.n(b,n,e)}if(t.length){var q=t.join("&");if(i.src.length+1+q.length>IDICommon.MAX_URL_LENGTH){q+="$";var v=h.d(a),z=IDICommon.MAX_URL_LENGTH-1-v.length,w=IDICommon.g(q,z),x=w.length;for(var p=0;p<x>
r.innerHTML+h.e({id:u,name:u,src:y,width:0,height:0,frameBorder:0})}else IDICommon.p(u,y)}h.c[b]+=x;q=""}i.src+="#"+q}if(k){var r=document.getElementById(k);r.innerHTML=r.innerHTML+IDICommon.b(i)}else document.write(IDICommon.b(i))};var l=g.prototype,c=[["setHostRelayUrl",l.w],["setModuleRelayUrl",l.z],["getModuleRelayUrl",l.d],["createModule",l.q],["postMessageToModule",l.v],["registerListener",l.n],["unregisterListener",l.o]];IDICommon.a("IDIHost",g,c)})();
function _idi_decodeArgs(d){var a=d.split("&");for(var b=0;bhttp://www.google.com/ig/modules/docs.xml\x26up...=" + encodeURIComponent(location.href);var hostRelayUrlPath = _idi_getup(iframe_url, "req_idi_hr");if (hostRelayUrlPath != null) {var hostRelayUrl = window.location.protocol + "//" +window.location.host + hostRelayUrlPath;IDIHost.setHostRelayUrl(hostRelayUrl);}IDIHost.createModule(iframe_url, 'iframe_2143218596','320', '500',{callback: _idi_callback,userPrefs: { },pollingInterval: 100,parentDivId: 'idi_2143218596'});})();

 
nka User

I'm with you, as I have had the very same problem. Hopefully someone will figure it out and post an addon.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel