<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>Add internet.com Web Developer Sites to Your Search Bar</title>
      <link>http://www.webreference.com/search/index.html</link>
      <description>Visitor Comments</description>
      <pubDate>Fri, 03 Nov 2006 19:00:43 GMT</pubDate>
      <lastBuildDate>Fri, 03 Nov 2006 19:00:43 GMT</lastBuildDate>
      <generator>Simple Comments 0.962</generator>

      <item>
         <title>Dan Ragle</title>
         <link>http://www.webreference.com/search/index.html#comment1</link>
         <description>I&amp;#39;ve updated this article with a new addEngine function, based on &quot;try..catch&quot; instead of interrogating the window.external.AddSearchEngine method as the previous addEngine did. There are two reasons for this change:&lt;br /&gt;&lt;br /&gt;1.) The previous method flat out doesn&amp;#39;t work in IE7; as IE7 will not allow you to test for the &lt;i&gt;existence&lt;/i&gt; of the AddSearchProvider method. That is, this statement:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;if (window.external.AddSearchProvider) {&lt;br /&gt;   // do something based on the&lt;br /&gt;   // existence of AddSearchProvider&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;generates an error in IE7.&lt;br /&gt;&lt;br /&gt;2.) The latest Firefox release (2.0) supports and &lt;i&gt;recommends&lt;/i&gt; (see &lt;a href=&quot;http://developer.mozilla.org/en/docs/Adding_search_engines_from_web_pages&quot;&gt;this link&lt;/a&gt;) the use of the AddSearchProvider method (and hence, the OpenSearch format) as opposed to the Sherlock-based configuration file.&lt;br /&gt;&lt;br /&gt;Thus, our new function uses try...catch to try the AddSearchProvider function first; and if it fails, tests for and tries the Sherlock-based mechanism for Firefox 1.5x. If this also fails, the alert message is provided for the user.&lt;br /&gt;&lt;br /&gt;Unfortunately, this means that the function will cause errors in older browsers that don&amp;#39;t recognize try...catch syntax; but a more graceful solution--that &lt;i&gt;doesn&amp;#39;t&lt;/i&gt; require ugly browser sniffing--escapes me at the moment. Feel free to drop us a comment if you come up with something more elegant!</description>
         <pubDate>Fri, 03 Nov 2006 18:58:36 GMT</pubDate>
         <guid>http://www.webreference.com/search/index.html#comment1</guid>
      </item>

   </channel>
</rss>