Hi
 
I was wondering why the BBC web site has not implemented the opensearch tag
in the web page headers on the bbc.co.uk site?
 
This makes it easy to add customized searches to Internet Explorer 7,
Firefox (Windows and Mac) and other browsers
 
HYPERLINK
"http://en.wikipedia.org/wiki/OpenSearch"http://en.wikipedia.org/wiki/OpenSe
arch
 
Basically all you require is a tag in the header:
 
<link rel="search" type="application/opensearchdescription+xml"
href="opensearch.php" title="BBC" />
 
and a file, such as this php one:
 
<?php
header("Content-type: application/opensearchdescription+xml");
 
$searchURL="http://search.bbc.co.uk/cgi-bin/search/results.pl?q={searchTerms
}&uri=%2Fhome%2Fd%2Findex.live.shtml";
 
echo

"<?xml version=\"1.0\"?>
<OpenSearchDescription xmlns=\"HYPERLINK
"http://a9.com/-/spec/opensearch/1.1/\\"http://a9.com/-/spec/opensearch/1.1/
\">
<ShortName>BBC</ShortName>
<Description>BBC</Description>
<Image height=\"16\" width=\"16\"
type=\"image/x-icon\">http://bbc.co.uk//favicon.ico</Image>
<Url type=\"text/html\" method=\"get\" template=\"$searchURL\"/>
</OpenSearchDescription>";
 
?>
 
and that's it.  When you visit a page with a search engine you havn't
installed, it appears in the search box (top right in IE and Firefox) whilst
you are on the site, and you can install it using the box's drop-down menu.
 
Brian Butterworth
HYPERLINK "http://www.ukfree.tv/"www.ukfree.tv
 
Email: HYPERLINK "mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.8/621 - Release Date: 09/01/2007
13:37
 

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.8/621 - Release Date: 09/01/2007
13:37
 

Reply via email to