[prev in list] [next in list] [prev in thread] [next in thread] 

List:       msql-mysql-modules
Subject:    Re: Optional select or enter data
From:       "Leif W" <warp-9.9 () usa ! net>
Date:       2003-08-27 20:19:47
[Download RAW message or body]

Also, here's a page that shows how to do this in Mozilla as well as IE.

http://www.faqts.com/knowledge_base/view.phtml/aid/1174


----- Original Message ----- 
From: "Greg Meckes" <gregmeckes@yahoo.com>
To: "Perl MySQL Mailing List" <perl@lists.mysql.com>
Sent: Wednesday, August 27, 2003 3:14 PM
Subject: Re: Optional select or enter data


> Here's something that you might be able to use:
> http://www.mattkruse.com/javascript/autocomplete/
>
> You would just have to change the Perl script to populate the select menu,
or use hidden fields.
>
> Greg
>
> --- Gerhard Weber <g.weber@computer-manufaktur.de> wrote:
> > hi Dan
> >
> > > Ideally, I'd like a text field that that auto-fills in as you type,
> > > selecting the closest match from the existing authors so long
> > > as a match
> > > is found.  (Hopefully, that's clear.  The behavior is common but
> > > somewhat difficult to describe.)  HTML doesn't appear to support
> > > anything near that level of sophistication.  It should be possible to
> > > write a script to create the behavior, but reloading the page
> > > after each
> > > key press seems like a non-starter in terms of performance.
> >
> > Something like this *can* be done with Javascript. You would need to
> > dynamically generate a Javascript array with your authors' names, an
> > update-function and an event-handler in your input fields (e.g. onKeyUp)
> > calling the update function.
> > Since this is a bit off topic, I keep it short: I once tried something
> > similiar but the performance depended heavily a) the number of authors
> > and b) your browser, so in the end I did not use it.
> >
> > > The only alternative I can come up with my limited knowledge
> > > is to have
> > > both a text field for new entires and a select field for existing
> > > entries.  Surely there's a better way than that.
> >
> > Sounds okay for me. Think of it as the price of a web application ;)
> >
> > Greetings,
> > gerhard
> >
> > --
> > MySQL Perl Mailing List
> > For list archives: http://lists.mysql.com/perl
> > To unsubscribe:
http://lists.mysql.com/perl?unsub=gregmeckes@yahoo.com
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> -- 
> MySQL Perl Mailing List
> For list archives: http://lists.mysql.com/perl
> To unsubscribe:    http://lists.mysql.com/perl?unsub=warp-9.9@usa.net
>
>
>



-- 
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/perl?unsub=msql-mysql-modules@progressive-comp.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic