[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] [patch] bb-findhost.cgi redirects to the page when only one host matches
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] [patch] bb-findhost.cgi redirects to the page when only one host matches
- From: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Tue, 27 Jun 2006 23:53:01 +0200
- References: <20060627100514.GC3270@cgoyard1.exp75.cvf>
- User-agent: Mutt/1.5.11
On Tue, Jun 27, 2006 at 12:05:14PM +0200, Charles Goyard wrote:
>
> I made a small modification to bb-findhost.c so that when a search
> yields only one results, you get transported to that page.
>
> Since we only know there's one result after a full scan of the bb-hosts
> file, and don't want to scan the file twice, I use an ugly way to do it:
> a javascript redirect held in a <img> tag.
I like the overall idea, but the implementation is not so nice.
So I made a different implementation of the same idea, but without the
JavaScript/img tag stuff. You'll find it in the snapshot that is
generated in a few minutes.
Regards,
Henrik