Dec 08 2007

OpenSearch plugin for IE/FF

Tag: CMS, widget/pluginsvish @ 4:34 pm

This plugn is basically a XML file, that use the OpenSearch description syntax which is compatible with IE 7 and Firefox. Here is a basic template which you can use for making this XML file :

Code:
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
    <ShortName>engineName</ShortName>
    <Description>engineDescription</Description>
    <InputEncoding>inputEncoding</InputEncoding>
    <Image width="16" height="16">data:image/x-icon;base64,imageData</Image>
    <Url type="text/html" method="method" template="searchURL">
    <Param name="paramName1" value="paramValue1"/>
    ...
    <Param name="paramNameN" value="paramValueN"/>
    </Url>
    <Url type="application/x-suggestions+json" template="suggestionURL"/>
    <moz:SearchForm>searchFormURL</moz:SearchForm>
</OpenSearchDescription>

You can find more about it over here. You can also advertise your plugin and install it programmatically.

Tags: opensearch