Feb. 28, 2011, 7:15 a.m.
posted by neverloop
Get Related Terms Instantly with Ajax
A personal TagCloud on a weblog
This code is a standard HTML file, and it doesn't need to reside on a web server. Simply open a text editor, such as Notepad, add the following code, and name the file relatedterms.html:
Running the Hack
When you open this page in Internet Explorer, you'll probably see a yellow security warning like the one shown below the Address bar in Figure.
Internet Explorer security warning
Click the yellow banner, and choose Allow Blocked Content…to let the script contact Yahoo!.
This will allow the browser to contact a remote domain, and the first time it tries to run, you'll see a request to allow the privilege change, as shown in Figure.
Firefox security request
Check the "Remember this decision" box and then click the Allow button. If you ever spot this dialog while browsing a file that you didn't write, you'll want to click Deny instead. But because you're in control of the information being passed around, you can be sure you're not doing anything malicious.
Yahoo! related terms for "active"
Keep typing, and new suggestions appear as you type the X, as shown in Figure.
Click any of the suggestions to view the search results for that phrase at Yahoo!. The complete phrase activeX Control will yield even more suggestions.