Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Search 如何为GAE文档创建Firefox搜索插件?_Search_Firefox Addon - Fatal编程技术网

Search 如何为GAE文档创建Firefox搜索插件?

Search 如何为GAE文档创建Firefox搜索插件?,search,firefox-addon,Search,Firefox Addon,这里的主要问题是搜索url: 它不包含?符号,也有#符号。 这样的URL无法通过XML验证,所以我尝试了其他不同的方法(甚至包括附加参数),但没有找到有效的解决方案 以下是我目前拥有的(为了简化,图像部分被截断): 谷歌AppEngine 在谷歌代码网站上搜索GAE文档。 UTF-8 数据:图像/x图标;base64,。。。 http://code.google.com/intl/it/appengine/docs/ 使用实体&对和进行编码,XML将有效: <?xml ver

这里的主要问题是搜索url:

它不包含
符号,也有
#
符号。 这样的URL无法通过XML验证,所以我尝试了其他不同的方法(甚至包括附加参数),但没有找到有效的解决方案

以下是我目前拥有的(为了简化,图像部分被截断):


谷歌AppEngine
在谷歌代码网站上搜索GAE文档。
UTF-8
数据:图像/x图标;base64,。。。
http://code.google.com/intl/it/appengine/docs/  

使用实体
&
进行编码,XML将有效:

<?xml version="1.0" encoding="UTF-8"?>  
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"  
                       xmlns:moz="http://www.mozilla.org/2006/browser/search/">  
  <ShortName>Google AppEngine</ShortName>  
  <Description>Search the GAE documents at Google Code website.</Description>  
  <InputEncoding>UTF-8</InputEncoding>  
  <Image width="16" height="16" type="image/x-icon">data:image/x-icon;base64,25</Image>  
  <Url type="text/html" method="GET" template="http://code.google.com/intl/it/query/#p=appengine&amp;q={searchTerms}"></Url>  
  <moz:SearchForm>http://code.google.com/intl/it/appengine/docs/</moz:SearchForm>  
</OpenSearchDescription>

谷歌AppEngine
在谷歌代码网站上搜索GAE文档。
UTF-8
数据:图像/x图标;base64,25
http://code.google.com/intl/it/appengine/docs/  
将此XML复制到以确认其有效性

<?xml version="1.0" encoding="UTF-8"?>  
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"  
                       xmlns:moz="http://www.mozilla.org/2006/browser/search/">  
  <ShortName>Google AppEngine</ShortName>  
  <Description>Search the GAE documents at Google Code website.</Description>  
  <InputEncoding>UTF-8</InputEncoding>  
  <Image width="16" height="16" type="image/x-icon">data:image/x-icon;base64,25</Image>  
  <Url type="text/html" method="GET" template="http://code.google.com/intl/it/query/#p=appengine&amp;q={searchTerms}"></Url>  
  <moz:SearchForm>http://code.google.com/intl/it/appengine/docs/</moz:SearchForm>  
</OpenSearchDescription>