Click here to Skip to main content
15,867,704 members
Articles / Web Development / XHTML
Article

Firefox Code Project Search Bar

Rate me:
Please Sign up or sign in to vote.
4.94/5 (19 votes)
24 Jun 20053 min read 103.9K   1.2K   73   19
A direct port of the Code Project Search Bar, but for Firefox instead of IE.

Image 1

Contents

Introduction

The Firefox Code Project SearchBar is a direct port of the IE Code Project SearchBar to the Firefox browser. It gives you almost all the same features - you can still do searches at any time, from any web page... but now you have the option of opening search results in a new tab, thanks to Firefox.

Here's what it looks like:

Image 2

System requirements

Firefox 1.0 or later, tested on 1.0.3 and 1.0.4.

SearchBar features

Quick searching

You can search the same way as the IE toolbar does - you can just click the button and search the article text. Alternatively, you can click the little arrow on the right hand side of the button, and choose from a few different options.

You'll notice a new option in the 0.3 version of the toolbar, a Google search option. This search option uses Google to search CodeProject, which is much easier than always typing the site: www.codeproject.com as a keyword into Google. And yes, I know about quick searches in Firefox.)

Image 3

Firefox natively supports drag and drop searching, so you can use that with this toolbar as well.

Code Project site links

You can click the Site Links button to see a menu of shortcuts to various areas of the site. This is an almost direct copy of the IE toolbar, with the same useful features. The only major feature that is missing right now is the Code Project Web Service reader, which I have not had the time to add.

Image 4

The SearchBar main menu

Click the down arrow next to the CodeProject button to see the control menu:

Image 5

You can clear the current search history or open the Options page via this menu. You can also more easily get access to the latest articles page, which I personally tend to read a lot.

SearchBar options

Click Options to open the SearchBar options dialog. The options are fairly self-explanatory.

The new option in Version 0.3: Open Site Links in new tab. The default behavior has been changed to not open site links in a new tab even if you have the search using a new tab. This makes it a little easier to navigate the way you'd like.

Image 6

Installing the SearchBar

If you are using the Firefox browser, you can go to the homepage link and you will see a link similar to this:

Image 7

Click the Install Now link to install the toolbar, and Firefox will do the rest. You will have to restart your browser in order to view the toolbar.

Uninstalling the SearchBar

You can uninstall, or even just disable the SearchBar using the Firefox Extensions manager.

Acknowledgements

This SearchBar was written to directly model the original IE version by Michael Dunn.

Here's a link to the greatest XUL/Firefox toolbar tutorial that you could ever hope for: Born Geek.

Source code

I've included the source code for the current version of this toolbar. I'm not going to write a full article to explain how it works, since the BornGeek tutorial linked above is much better than I could write. Download the source code at the top of the page, and use the instructions on BornGeek to compile it into an extension that you can install.

Revision history

  • v0.2 - First version submitted to Code Project, lacking a few features still.
  • v0.3 - New features: Google CodeProject search, context menu.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionAutopopulating history in combobox while editing Pin
rixwan2-Nov-08 20:07
rixwan2-Nov-08 20:07 
GeneralA useless waste of screen space Pin
Lord Sy11-Sep-07 4:21
Lord Sy11-Sep-07 4:21 
GeneralDoes not work in FireFox 2 Pin
virtualnik2-May-07 23:22
virtualnik2-May-07 23:22 
QuestionFirefox Toolbar Pin
HarishDixit23-Jul-06 21:24
HarishDixit23-Jul-06 21:24 
AnswerRe: Firefox Toolbar Pin
georgekjolly28-Dec-06 23:21
georgekjolly28-Dec-06 23:21 
GeneralRe: Firefox Toolbar Pin
Dev_SenthilKumar25-Apr-07 2:40
Dev_SenthilKumar25-Apr-07 2:40 
GeneralWeb service reader is obsolete now Pin
Michael Dunn3-Feb-06 19:03
sitebuilderMichael Dunn3-Feb-06 19:03 
GeneralVersion 1.5 Pin
hairy_hats15-Nov-05 0:22
hairy_hats15-Nov-05 0:22 
GeneralRe: Version 1.5 Pin
Lowell Heddings15-Nov-05 18:55
Lowell Heddings15-Nov-05 18:55 
GeneralRe: Version 1.5 Pin
hairy_hats15-Nov-05 23:17
hairy_hats15-Nov-05 23:17 
Generalcool, but I use mozilla Pin
Almighty Bob31-May-05 18:31
Almighty Bob31-May-05 18:31 
GeneralRe: cool, but I use mozilla Pin
Lowell Heddings1-Jun-05 2:56
Lowell Heddings1-Jun-05 2:56 
GeneralRe: cool, but I use mozilla Pin
Anonymous2-Jun-05 5:02
Anonymous2-Jun-05 5:02 
GeneralRe: cool, but I use mozilla Pin
Lowell Heddings2-Jun-05 7:38
Lowell Heddings2-Jun-05 7:38 
QuestionSource? Pin
Jason De Arte31-May-05 17:42
Jason De Arte31-May-05 17:42 
AnswerRe: Source? Pin
Lowell Heddings1-Jun-05 3:02
Lowell Heddings1-Jun-05 3:02 
AnswerRe: Source? Pin
Lowell Heddings1-Jun-05 7:59
Lowell Heddings1-Jun-05 7:59 
GeneralCool Pin
oykica31-May-05 14:59
oykica31-May-05 14:59 
GeneralTodo.... Pin
Lowell Heddings31-May-05 11:30
Lowell Heddings31-May-05 11:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.