Adding YubNub to your website.

0 views
Skip to first unread message

jeremy...@gmail.com

unread,
Jan 25, 2008, 8:25:51 PM1/25/08
to YubNub
I've seen in the past websites with Google Search Bar's kind of
plugged in. Is there a way to do the same with a YubNub search bar?
I'm lauching my own website soon and it would be cool to show my
clients how wonderful YubNub is without sending them anywhere or
getting them to add it to their search bar.

Thanks, everyone here has been so helpful.

Sam Peterson

unread,
Jan 26, 2008, 2:58:15 AM1/26/08
to Yub...@googlegroups.com
Add this to your site

<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

jeremy...@gmail.com

unread,
Jan 27, 2008, 3:37:29 AM1/27/08
to YubNub
Thank you. Works great.

On Jan 25, 11:58 pm, "Sam Peterson" <peabodyena...@gmail.com> wrote:
> Add this to your site
>
> <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>
>
> On Jan 25, 2008 5:25 PM, jeremyout...@gmail.com <jeremyout...@gmail.com> wrote:
>
>
>
> > I've seen in the past websites with Google Search Bar's kind of
> > plugged in. Is there a way to do the same with a YubNub search bar?
> > I'm lauching my own website soon and it would be cool to show my
> > clients how wonderful YubNub is without sending them anywhere or
> > getting them to add it to their search bar.
>
> > Thanks, everyone here has been so helpful.
>
> --
> Sam Peterson
> peab...@freeshell.org
> peabodyena...@gmail.com

Gourgandin

unread,
Feb 15, 2008, 9:44:28 AM2/15/08
to YubNub
What if I want to use the auto-completer http://www.grahamedgecombe.com/yubnub/
?

Thanks.

On 26 jan, 08:58, "Sam Peterson" <peabodyena...@gmail.com> wrote:
> Add this to your site
>
> <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>
>
> On Jan 25, 2008 5:25 PM, jeremyout...@gmail.com <jeremyout...@gmail.com> wrote:
>
>
>
> > I've seen in the past websites with Google Search Bar's kind of
> > plugged in. Is there a way to do the same with a YubNub search bar?
> > I'm lauching my own website soon and it would be cool to show my
> > clients how wonderful YubNub is without sending them anywhere or
> > getting them to add it to their search bar.
>
> > Thanks, everyone here has been so helpful.
>
> --
> Sam Peterson
> peab...@freeshell.org
> peabodyena...@gmail.com

Sam Peterson

unread,
Feb 15, 2008, 4:00:58 PM2/15/08
to Yub...@googlegroups.com
Gourgandin <gourg...@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
peabod...@gmail.com
"if programmers were paid to remove code instead of adding it,
software would be much better" -- unknown

Reply all
Reply to author
Forward
0 new messages