{"id":756,"date":"2005-12-29T19:10:24","date_gmt":"2005-12-30T02:10:24","guid":{"rendered":"http:\/\/www.faganfinder.com\/wp\/2005\/12\/29\/756\/"},"modified":"2007-09-06T14:12:26","modified_gmt":"2007-09-06T21:12:26","slug":"windows-search-guide","status":"publish","type":"post","link":"https:\/\/faganm.com\/blog\/2005\/12\/29\/756\/","title":{"rendered":"Windows Search Guide"},"content":{"rendered":"\n<p><a href=\"http:\/\/www.microsoft.com\/windows\/ie\/searchguide\/default.mspx\">Windows Search Guide<\/a> &#8211; a (very <a href=\"http:\/\/mpt.net.nz\/archive\/2005\/12\/27\/web-2\">beta<\/a>) page is up for adding search engines to the search box in Internet Explorer 7. Note that at the time of this writing the OpenSearch Description files they&#8217;re using are in v1.1 draft 1, which they&#8217;ll hopefully upgrade appropriately. Also they&#8217;re declaring that the results are in RSS, when they are actually in HTML.<\/p>\n<p>Anyhow, now that there are two browsers (okay, so IE7 hasn&#8217;t been released yet&#8230;) that support adding search engines via javascript, here&#8217;s a single javascript function that handles both of them. It assumes you have three files &#8211; .src plugin file and a 16&#215;16 icon, and an <a href=\"http:\/\/opensearch.a9.com\/spec\/1.1\/description\/\">OpenSearch Description file<\/a>. There&#8217;s a <a href=\"http:\/\/opensearch.a9.com\/docs\/sherlock.jsp\">.src to OpenSearch Description file converter<\/a> I wrote on A9.com.<\/p>\n<pre><code>function addEngine() {\n  try {\n    window.sidebar.addSearchEngine('http:\/\/example.com\/plugin.src',\n      'http:\/\/example.com\/plugin.png', 'Example Search Engine', 'Category Name');\n  }\n  catch (e) {\n    try {\n      window.external.AddSearchProvider('http:\/\/example.com\/opensearch.xml');\n    }\n    catch (e) {\n      alert('Internet Explorer 7, Firefox, Mozilla, Netscape 6 or higher,\n        or Camino is needed to install a search engine.');\n    }\n  }\n}<\/code><\/pre>\n<p>personal notes for later:<\/p>\n<p>Opera:<br \/>\n<a href=\"http:\/\/nontroppo.org\/wiki\/SearchINIEditing\"> Manually Editing Opera Searches using search.ini<\/a><br \/>\n<a href=\"http:\/\/opera-info.xorg.pl\/en\/\">Opera Search.ini Editor 1.25<\/a><\/p>\n<p>Safari<br \/>\n<a href=\"http:\/\/www.macosxhints.com\/article.php?story=20030519070642235\">Add Mozilla-like keyword functionality to Safari&#8217;s search bar<\/a> (a hack)<br \/>\n<a href=\"http:\/\/www.pozytron.com\/?acidsearch\">AcidSearch 0.61<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows Search Guide &#8211; a (very beta) page is up for adding search engines to the search box in Internet Explorer 7. Note that at the time of this writing the OpenSearch Description files they&#8217;re using are in v1.1 draft &hellip; <a href=\"https:\/\/faganm.com\/blog\/2005\/12\/29\/756\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[172,224,225,171],"class_list":["post-756","post","type-post","status-publish","format-standard","hentry","tag-browsers","tag-internetexplorer","tag-javascript","tag-opensearch"],"_links":{"self":[{"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/posts\/756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/comments?post=756"}],"version-history":[{"count":0,"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/posts\/756\/revisions"}],"wp:attachment":[{"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/media?parent=756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/categories?post=756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/tags?post=756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}