Google Groups Home
Help | Sign in
Message from discussion Adding YubNub to your website.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Sam Peterson  
View profile
 More options Feb 15, 4:00 pm
From: Sam Peterson <peabodyena...@gmail.com>
Date: Fri, 15 Feb 2008 13:00:58 -0800
Local: Fri, Feb 15 2008 4:00 pm
Subject: Re: Adding YubNub to your website.
Gourgandin <gourgan...@gmail.com> on Fri, 15 Feb 2008 06:44:28 -0800
(PST) didst step forth and proclaim thus:

> 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
peabodyena...@gmail.com
"if programmers were paid to remove code instead of adding it,
software would be much better" -- unknown


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google