IT Consultant, Agile Coach, Business Analyst

Google Toolbar的AutoFill

October 18, 2004 – 4:48 pm | by 冰云

自从Google推出了toolbar以来,我认识好多人都安装了。确实很方便。Google凭借超强的人气,居然没有像MSN toolbar, 3721 toolbar之类的被讨厌。

Google Toolbar的一项特性是支持AutoFill功能(仅英文版提供)。一但Toolbar发现web页界面中包含特定的Input,就能够自动填写。

    Google Toolbar的一项特性是支持AutoFill功能(仅英文版提供)。一但Toolbar发现web页界面中包含特定的Input,就能够自动填写。如下图:

 
    
那么,什么是特定的Input呢?

经过测试,主要包含如下几种,可能不太准确,因为没找到详细的文档。

1  常见的inputname

直接以email, name等来命名Input,可以Autofill。也可能是根据上下文的关联来判断。因为不同的name可能导致前后若干输入框都无法Autofill

<Form>

  <input type="text" name="FullName" />

  <input type="text" name="Email" />

  <input type="text" name="Country" />

  <input type="text" name="State" />

  <input type="text" name="City" />

  <input type="text" name="Zipcode" />

<Form>

2 说明+input

这种Autofill的情况,体现了Toolbar的智能化。为了适应之前各大网站的输入框,Toolbar按照类似Semantic Web的形式来找寻。根据Input前的说明来判断该输入框应该是什么东西。该方式目前仅支持英文的说明。

<Form>

  Full Name <input type="text" name="txt1" /><BR/>

  Email <input type="text" name="txt2" /><BR/>

  ZipCode <input type="text" name="txt3 /"><BR/>

  Address <input type="text" name="txt4 /"><BR/>

  State <input type="text" name="txt5" /><BR/>

</form>

3 RFC3106

RFC3106的全称是ECML v1.1: Field Specifications for E-Commerce。主要是描述了电子商务中,收货人,收款人,知会人,信用卡等各种不同的字段信息。Google  Toolbar号称支持RFC3106field。不过实际上支持得很差。不知是否还未完成的缘故。

<input type=”text” name=”Ecom_ShipTo_Postal_Name_First” />

<input type=”text” name=”Ecom_ShipTo_Postal_Name_Last” />

<input type=”text” name=”Ecom_ShipTo_Postal_PostalCode” />

<input type=”text” name=”Ecom_ShipTo_Telecom_Phone_Number” />

<input type=”text” name=”Ecom_ShipTo_Online_Email” />

    这或许是Google在语义web上的一次尝试。根据上面的分析,我认为各位网站设计人员有必要遵循一定的命名规则来设计这样的填充表单。尤其是制作做商务网站的人,可以考虑遵循RFC3106的命名规则。  

另外还有一些古怪的情况出现,目前还无法搞清楚是怎么回事。到底Toolbar是按照什么patterns来匹配input的?希望有兴趣的人共同研究。

相关资料

Google Toolbar

http://toolbar.google.com

使用Firefox的朋友们,也可以安装一个扩展来支持Autofill:

http://autofill.mozdev.org/

测试IE是否安装了toolbar

http://code.jenseng.com/google/google_tests.html

屏蔽默认的可自动填写区域的黄色底色

http://dreamlettes.net/tutorials/googleautofill/default.htm

RFC3106 电子商务值域描述

http://www.ietf.org/rfc/rfc3106.txt

  1. One Response to “Google Toolbar的AutoFill”

  2. By AutoFillNo Gravatar on Nov 14, 2004 | Reply

    AutoFill Browser

    AutoFill Browser is Powerful Web Browser, one-click web form filler. A submission utility for shareware authors.
     AutoFill Browser can automatically fill out any web forms with the information.
     AutoFill Browser works with any language pages.

Sorry, comments for this entry are closed at this time.