Searching multiple web resources

Not quite Excel related but something I thought might be useful to others…

Some time back I wrote a JavaScript based webpage that let me search multiple web resources from a single page. Recently, I enhanced the page to support the addition of new search resources “on the fly.”

So, from this one page (http://www.tushar-mehta.com/search/web.htm) I can simultaneously search multiple search engines like Google, Yahoo, and Bing. Similarly, from http://www.tushar-mehta.com/search/product.htm I can search several retail sites for a product of interest. This is geared towards office and technology products whereas http://www.tushar-mehta.com/search/retail.htm targets clothing and home. Of course, since one can add new sites on the fly any of the above pages can be “re-targeted” to a different type of store. Customization does require that cookies be enabled.

Posted in Uncategorized

2 thoughts on “Searching multiple web resources

  1. Hmmm, seem to be having some trouble on these pages:

    “Line: 182, Char: 0, Error: Object Expected, Code: 0?

    Then upon carrying out a search:
    “The website cannot display the page
    HTTP 405
    Most likely cause:
    The website has a programming error.”

    (FYI, I’m running IE 7.0.5730 on Win XP Pro SP2)

  2. Sorry about that, Rick, and thanks for the heads up.

    *After* the original post, I took one more look at the JavaScript code and found several references to the same literal. I consolidated them using a constant. Unfortunately, this last minute change was tested very lightly using only Firefox. While FF, Chrome, and Safari support a ‘const’ in JS, IE does not. :(

    I changed the ‘const’ to ‘var’ and IE seems happy with that.


Posting code? Use <pre> tags for VBA and <code> tags for inline.

Leave a Reply

Your email address will not be published.