Digging into Google Notebook javascript http://blogs.zdnet.com/Google/?p=193

 product launch just isn’t the same without digging through some source code to see what goodies are hidden under the hood.  It seems like most new Google products have code hanging around that doesn’t seem to do anything (yet).

Google Notebook isn’t any different — there are several references to interesting things that I’m sure you will enjoy.  These should not be considered a guarantee of future functionality — but I would say they are a pretty good indication.

The first piece of code is quite obviously "experimental" since it explicitly says so.  This code definitely indicates they are at least testing "gadgets" in Notebook.  I’m not sure how gadgets will enhance the service, but I guess they have determined it would be useful at some level.  By the look of it, you will be able to use Google created gadgets along with third party ones from the IGoogle directory.

ne_s.prototype.yJ=function(){
  this.xm("Add a Gadget [Experimental]");
  this.Tt("Add Gadget >>");

  this.zB()
}

ne_s.prototype.lJ=function(){
  this.Tt("OK");
  if(this.Wh){
    this.xm("Setup Gadget");
    this.BB()
  } else {
    this.xm("Loading gadget information…");
    this.au(this.qa["url"])
  }
}

ne_e.innerHTML="These are the same kinds of gadgets that you can add to your <a href=’http://www.google.com/ig’ target=’_blank’>Google Personalized Homepage</a>.";

The second piece of code that I thought was interesting is the reference to image uploading and editing HTML.  Currently you don’t have a lot of control over the final appearance of your notebooks — you are pretty much limited to pasting stuff, changing the font and creating links.  If this code is any indication, it could soon more closely resemble Google Page Creator.

var ne_d = ne_u.setupUpload (this.yourImagesTab, "Upload an image", ne_, this.bE.bind(this), ne_c, ne_b, !this.ag.Qa(), this.mK);

var ne_ = ne_aa.createTabDiv(ne_4.HTML_ID, "HTML", "Edit your HTML here", this.c, this.xa.bind(this));

And the third interesting snippet is for a debug window that according to the code, you have to hit ‘D’ inside the main "caribou" window to stop debugging.  What is caribou though?  Caribou was the codename for Gmail before it was released.  Could this mean some kind of Gmail integration in the future?  The interface already resembles Gmail wouldn’t you say? 

var ne_ = "<font color=#ff0000><b>To turn off this debugging window,hit ‘D’ inside the main caribou window, then close this window.</b></font><br>";

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值