public inbox for [email protected]
help / color / mirror / Atom feedFrom: Petr Jelinek <[email protected]>
To: [email protected]
Subject: Browser search engine integration
Date: Fri, 04 May 2007 17:58:15 +0200
Message-ID: <[email protected]> (raw)
Hi all,
I noticed we do not have search engine plugins (that small searchbar in
right top corner) for FireFox or IE7 so I decided to write them.
I attached 4 files to this mail, install.html is sample xhtml (mostly
javascript) code for installation of those plugins, we might want to add
something like those js links to search page menu under "Archives
search" for example. Pgsql.src and pgsql.xml are those "plugins" for
Firefox and Internet Explorer 7. Note that everything (javascript and
plugins) expect we put this in
"http://search.postgresql.org/integration/"; so if that's not true it
needs to be changed in all 3 files.
Comments or ideas ?
--
Regards
Petr Jelinek (PJMODOS)
<search
version = "0.1"
name="PostgreSQL"
description="PostgreSQL"
method="GET"
action="http://search.postgresql.org/search";
searchForm="http://search.postgresql.org/";
queryEncoding="UTF-8"
queryCharset="UTF-8"
routeType="internet"
>
<input name="q" user>
<input name="sourceid" value="Mozilla-search">
<interpret
browserResultType="result"
charset="UTF-8"
>
</search>
<browser
update="http://search.postgresql.org/integration/pgsql.src";
updateIcon="http://search.postgresql.org/integration/pgsql.gif";
updateCheckDays="7"
>
Attachments:
[text/html] install.html (1.4K, 2-install.html)
download | inline:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" dir="ltr">
<head>
<title>PostgreSQL searchbar - install</title>
</head>
<body>
<script type="text/javascript">/* <![CDATA[ */ isIE7 = false; /* ]]> */</script>
<!--[if IE 7]>
<script type="text/javascript"><![CDATA[ isIE7 = true; ]]></script>
<![endif]-->
<script type="text/javascript">
/* <![CDATA[ */
if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function"))
{
document.writeln('<input type="button" value="Add Search Provider" onclick="window.sidebar.addSearchEngine(\'http://search.postgresql.org/integration/pgsql.src\', \'http://search.postgresql.org/integration/pgdocbot.gif\', \'PostgreSQL\', \'Reference\');">');
}
else if (isIE7)
{
document.writeln('<input type="button" value="Add Search Provider" onclick="window.external.AddSearchProvider(\'http://search.postgresql.org/integration/pgsql.xml\');">');
}
else
{
document.writeln('A PostgreSQL search plugin is only for <a href=\"http://www.mozilla.org\">Mozilla</a>, <a href=\"http://www.mozilla.com\">Firefox</a> or Internet Explorer 7 browsers.');
}
/* ]]> */
</script>
<noscript>
<h1>JavaScript required</h1>
<h4>You have to enable java-script in order to install the PostgreSQL search plugin</h4>
</noscript>
</body>
</html>
[image/gif] pgsql.gif (200B, 3-pgsql.gif)
download | view image
[text/plain] pgsql.src (584B, 4-pgsql.src)
download | inline:
<search
version = "0.1"
name="PostgreSQL"
description="PostgreSQL"
method="GET"
action="http://search.postgresql.org/search"
searchForm="http://search.postgresql.org/"
queryEncoding="UTF-8"
queryCharset="UTF-8"
routeType="internet"
>
<input name="q" user>
<input name="sourceid" value="Mozilla-search">
<interpret
browserResultType="result"
charset="UTF-8"
>
</search>
<browser
update="http://search.postgresql.org/integration/pgsql.src"
updateIcon="http://search.postgresql.org/integration/pgsql.gif"
updateCheckDays="7"
>
[text/xml] pgsql.xml (425B, 5-pgsql.xml)
download | inline:
<?xml version="1.0" encoding="UTF-8" ?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>PostgreSQL</ShortName>
<Description>PostgreSQL</Description>
<inputEncoding>UTF-8</inputEncoding>
<Image width="16" height="16">http://search.postgresql.org/integration/pgsql.gif</Image>
<Url type="text/html" template="http://search.postgresql.org/search?q={searchTerms}" />
</OpenSearchDescription>
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: Browser search engine integration
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox