On Wed, Jan 28, 2009 at 1:41 AM, Aryeh Gregor
<simetrical+wikil...@gmail.com> wrote:
> On Tue, Jan 27, 2009 at 7:37 PM, George Herbert
> <george.herb...@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>



-- 
--
ℱin del ℳensaje.

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to