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/%22+ escape(word) ); $("form1").submit(); } </script>