What code would I use if decided to use Open Search? Any thoughts on how to manage the search results to integrate it with my website present it consistently with the rest of the site?
----- Original Message ---- From: Tei oscar.vives@gmail.com To: Wikimedia developers wikitech-l@lists.wikimedia.org Sent: Wednesday, January 28, 2009 2:31:42 AM Subject: Re: [Wikitech-l] hosting wikipedia
On Wed, Jan 28, 2009 at 8:28 AM, Tei oscar.vives@gmail.com wrote:
On Wed, Jan 28, 2009 at 1:41 AM, Aryeh Gregor Simetrical+wikilist@gmail.com wrote:
On Tue, Jan 27, 2009 at 7:37 PM, George Herbert george.herbert@gmail.com wrote:
Right, but a live mirror is a very different thing than a search box link.
Well, as far as I can tell, we have no idea whether the original poster meant either of those, or perhaps something else altogether. Obviously nobody minds a search box link, that's just a *link*. You can't stop people from linking to you.
This one code don't even need to use http://en.wiktionary.org/wiki/Special:Search
<input box id="word" /> <form id="form1"> <input type="button" onclick="searchWiktionary()" value="Define" /> </form>
<script> function $(name){ return document.getElementById(name); } function searchWiktionary(){ var word = $("word").value; $("form1").setAttribute("action","http://en.wiktionary.org/wiki/"+ escape(word) ); $("form1").submit(); } </script>
postadata: I know the OP talk about OpenSearch. This snip of code is something different instead.