Gmail上下文小工具

时间:2016-09-18 05:41:39

标签: gmail-contextual-gadgets

我正在尝试为gmail创建一个上下文小工具。 我完全按照文档编写,但无法创建工作版本。

然而,我通过做一些修改创建了一个小工具,并且我在GMail的主窗口上工作了 但是当我添加像HelloWorld这样的提取器时,通过取消注释Require标签,它就无法正常工作。

此文件托管在http://ripplesonline.in/gadget.working.xml中,我选择了范围内的所有项目。

这是小工具xml文件:

<?xml version="1.0" encoding="UTF-8"?>
<Module>
  <ModulePrefs title="Hello World" description="Matches and echoes 'Hello World' string in emails" >  
    <!--
    <Require feature="google.contentmatch">
      <Param name="extractors">
        google.com:HelloWorld,google.com:SenderEmailExtractor
      </Param>
    </Require>
    -->
  </ModulePrefs>

  <Content type="html">
     <![CDATA[ 
        <script>
            function justAnAlert(){
                console.log("just a test");
                debugger
                alert("just a test");
            }
            gadgets.util.registerOnLoadHandler(justAnAlert);

        </script>
       Hello, world!
     ]]>
  </Content> 

</Module>

谢谢

0 个答案:

没有答案