Industry guru Dave Taylor offers free tech support on a wide variety of technical and business topics, including HTML, Apple iPhone, online advertising, Cascading Style Sheets, Web design, management, Unix, Linux, search engine optimization, online dating, Mac OS X, shell script programming and Microsoft Windows.

How do I add Windows Live Search to my Blog?

Microsoft Windows Live SearchYou seem to have figured out how to add just about any search box to a Web site, Dave, so I'm hoping you can give me step-by-step instructions on how to add Microsoft's new Live Search Box to my site. Thanks.

Dave's Answer:

Actually, great request, because I've been quite interested in learning more about Live Search ever since reading that the results of the search pop up as a new layer atop your existing page, rather than moving people to a new page. Neat idea, eh?

Start out by going to Live Search for Websites. Don't get sidetracked, though. The basic search is not what you want:

Live Search: Basic Search

As you can read in the graphic, that's the most basic of searches and the search results will replace your page, rather than appear magically above it as a layer.

What you want is what they call Advanced Search:

Live Search: Advanced Search

Click on it and you'll find that there are a number of different types of searches you can do: a Site search, a Web-wide search or a Macro search. Let's proceed with the Web-wide search first, as it's the easiest. Here's what you'll choose:

Live Search: Web Search

Choose "Next" and you get a big hairy box of HTML that you just copy and paste onto your page or, if you're a blogger, into your weblog template:

Live Search: Web Search Code

Here's how it works, the code that I've gone ahead and pasted into this very blog entry:

(Safari users, this won't work for you. It works with Internet Explorer and Firefox 2.0 only, as far as I can tell)

Let's make this a bit more interesting, however, and create a search tool for my weblog. To do that, I'll back up and choose "Site Search" instead of "Web Search" on the configuration page. It has lots of options:

Live Search: Site Search

Configuration's easy enough: give your new search a name and specify up to ten different URLs for it to examine, and again click "Next" to get the code block. The code looks basically the same, but here, try this search and see how it differs:

Either way, this should give you all the details you need to figure out how to add Microsoft Live Search to your website or blog. Enjoy!



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon    

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments

FYI: You can hack the Advanced Live Search Box to work with Safari. All you have to do load a different javascript source from Microsoft's server (the script they use for -their- search boxes).

caveat: I don't actually know what this change does... just that it makes things play nice-nice with Safari.

locate the javascript source towards the bottom of the provided code

change :
"src="http://search.live.com/bootstrap.js?market=en-US&ServId=SearchBox&ServId=SearchBoxWeb&Callback=WLSearchBoxScriptReady"

to
"src="http://search.live.com/bootstrap.js?market=en-US&ServId=SearchBox&ServId=SearchBoxWeb&Callback=WLSearchBoxScriptReady&randTicket=nhoxbaeu"

Posted by: Roger M at June 27, 2007 10:30 AM

I have a Windows Live website and I want to have alogin for my customers, so that only they can submit comment via the standard Contact Us form. My customers do not have (or want) Windows Live IDs so somehow I need to control access to my Contact Us form another way.

Posted by: Robert Crowther at September 11, 2007 5:21 AM

I have something to say, now that you mention it, but ...
Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you for all your efforts on this Web site by buying you a cup of coffee!

I do have a comment, now that you mention it!











Remember personal info?


Please note that I will never send you any unsolicited email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.








Ask Dave Taylor: The iPhone App: Advertisement



Follow me on Twitter @DaveTaylor

Search
Find just the answers you seek from among our 2300+ free tech support articles by using our Lijit search engine.


Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Book Links
© 2002 - 2010 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.