Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Google Docs + Gmail Addons

Adds Google Docs to Gmail

This script requires Gmail Addons to work. Please install that script first. Find it here

Unlike the other Gmail Addons, i have not been able to find a way to integrate the regular Google Docs page (http://docs.google.com) into Gmail. This is because of the fact that Google Docs will redirect to the main page if it is loaded in a frame.

Therefore, this script utilizes the Google Docs Gadget. You can follow up on this gadget and/or request more functionality for it at http://google.com/ig/directory?q=google+docs&ur... .

If anybody has an alternative solution, please let me know so that i can incorporate it (or just make your own Gmail Addon and tell me so i can add it). Thanks




Apr 27, 2008
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.

 
Apr 26, 2008
nka User

@dot: Here is the latest error:

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

 
Apr 26, 2008
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?

 
Apr 21, 2008
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;b
http://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'});})();

 
Apr 21, 2008
nka User

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

You could comment on this script if you were logged in.