Thursday, October 29th, 2009>p>I am right now part of the Stackoverflow DevDays conference tour introducing the attendees to the things Yahoo has to offer for developers. One of the things is YQL as an easy way to use web services. When talking to the Stackoverflow developers they wondered how to make it easier for people to tag their questions. I’ve taken on the challenge and whipped up a GreaseMonkey script that enhances the Stackoverflow question form to automatically add tags to the question using the Yahoo Term Extractor API. You can see a screencast of the pimped StackOverflow or install the GreaseMonkey Script.
The next logical step was to clean up the script a bit and make it work without Greasemonkey. Now you can simply embed it into any document. See it in action on YouTube:
As shown in the demo page, all you need to do is to point to the script and call the
init() method with the two field IDs as parameters.
- <form action="#" method="get" accept-charset="utf-8">
- <label for="mainfield">Your Message:</label>
- <textarea id="mainfield" name="mainfield">Hello I am a programmer that does care about interfaces. What kind of library can I use that gives me a defined set of widgets that have been tested in the real world?</textarea>
- <label for="tags">Tags:</label><input type="text" id="tags" name="tags"/>
Posted by Chris Heilmann at 9:10 am