>
> I have an idea for a form field, that when people type, a remote
> scripting object would hit a cf page, that would query the db on
> each keyPressUp and return a recordset with query results that match.
>
> so, if I was searching company records...and I typed in
>
> "app
>
> as I let off the keyboard for each letter, it would search and matches
> would appear.
>
> now I know that this kinda thing can be done with flash remoting.
> but in tandem with _javascript_ and cf is it possible?
Yes, it's certainly possible, and we've done things like that in our
applications for many years. It typically involves multiple frames or an
image "data pipe" for sending and receiving messages from the server.
However, with the lookup scenario you mentioned, you might not want to
lookup every keystroke individually, as that would have a couple of
drawbacks. It might be pretty hard on your server, and it wouldn't be able
to match a fast typist. You might have better luck with a hybrid approach,
which initially downloads a dataset to the browser then uses _javascript_ for
subsequent keystrokes to show the closest match to the character string in
the text box after every keystroke.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

