<form action="http://yubnub.org/parser/parse" method="get" name="input_box">
<input type="text" name="command" size="55" value=""/>
<input type="submit" value="Enter" />
</form>
--
Sam Peterson
pea...@freeshell.org
peabod...@gmail.com
> What if I want to use the auto-completer http://www.grahamedgecombe.com/yubnub/
> ?
>
> Thanks.
I'm not sure if the code on that page will work verbatim if you just
copy it. It's using a request object to retrieve a list of commands
that are substring matches for what you've typed so far from his
server. It then fills <div> objects with values equal to the
different yubnub commands into a hidden <div> element on the page. It
then displays that element underneath the text input entry.
I'm not a javascript expert...almost never hacked any ajax before.
The main concern with copying that code is that the url
http://www.grahamedgecombe.com/yubnub/ajax.php. That's what's used to
get the list of commands. I don't know if you could just change the
url portion of the http_request object to be his url, if javascript
security prevent that or not. Someone with more skills than I should
take a crack at the problem.
--
Sam Peterson
peabod...@gmail.com
"if programmers were paid to remove code instead of adding it,
software would be much better" -- unknown