Gourgandin <gourgan
...@gmail.com> on Fri, 15 Feb 2008 06:44:28 -0800
(PST) didst step forth and proclaim thus:
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
peabodyena...@gmail.com
"if programmers were paid to remove code instead of adding it,
software would be much better" -- unknown