Network Solutions WHOIS Firefox and IE Search Plugin/Provider (JavaScript addEngine)

| No TrackBacks
network-solutions-whois-search-provider.png
I prefer Network Solutions' WHOIS service over others because it appears to be one of the more complete and accurate WHOIS services available.  Because I use this WHOIS search service a lot, I decided to put together a quick yet complete search plugin/provider for Firefox and Internet Explorer 7 (as shown in the screen shot to the left).

Add to your Firefox or IE7:  Click here to add my Network Solutions WHOIS search provider to your Firefox or IE7.

In fact, building your own search plugin/provider for Firefox and IE is relatively simple.  All you need is a small XML file that defines a few details about the provider, and a little JavaScript to trigger the install process.  My Network Solutions WHOIS search plugin XML can be found here; note that this XML works for IE7 and Firefox.  If you need to Base64 encode an image/x-icon for the provider XML, I suggest using this converter.  With regards to the JavaScript that triggers the search plugin installation in the browser (addEngine), take a look at this JavaScript example ...
function addEngine(xml,icon,provider,cat){
  if((typeof window.sidebar=="object")&&
(typeof window.sidebar.addSearchEngine=="function")){ window.sidebar.addSearchEngine(xml,icon,provider,cat); } else { try { window.external.AddSearchProvider(xml); } catch (x) { if(70==(x.number&0xFFFF)){ alert("For security reasons, you must use the mouse" +
"\n(or the Enter key) to click the Install button."); } else { alert("Unable to add search provider. " +
"[" + (x.number & 0xFFFF) + "]"); } return false; } } }
The call to window.sidebar.addSearchEngine() is for Firefox.  The call to window.external.AddSearchProvider() is for Internet Explorer.


FOLLOWUP 3/30/09:

Special thanks to Network Solutions for featuring my WHOIS browser plugin on their Network Solutions Labs homepage!

Did You Find this Helpful?

Did you find this post helpful, or at least, interesting?

  

About Mark

A Silicon Valley native, Mark Kolich is a full-time Software Engineer and a consultant for hire. A web technologies expert, his current focus is on building powerful and robust cloud-driven web-applications using Java, PHP, Perl, AJAX, DHTML, CSS, and JavaScript. His favorite programming languages are PHP, Java and JavaScript. He uses Linux, enjoys biking to work, loves building great software, and always writes elegant, readable, and maintainable code.

No TrackBacks

No trackbacks attached to this entry.

Twitter (@markkolich)

Translate

About this Entry

This page contains a single entry by Mark Kolich published on January 31, 2009 7:00 AM.

Understanding Java's "Perm Gen" (MaxPermSize, heap space, etc.) was the previous entry in this blog.

HOWTO: Make Your Own AddThis Social Bookmarking Sharing Widget (Sharing URLs) is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.