Text_field_with_auto_complete AND observe_field on same field?

Hello.

I have a field on my page that I create with
text_field_with_auto_complete. The auto-complete functionality works
well.

I found an observe_field sample and got it working stand-alone in its
own page. I was amazed at how easy it was to get it working. Thanks
RoR magic! :slight_smile:

What I need to do is to have the observe_field functionality ‘observe’
my auto-complete field but I have been, so far, unable to make it
work.

Is it possible that by having the field generated with the
text_field_with_auto_complete I cannot observe the field with an
observe_field? And if that is the case, can I observe the ‘target’
field instead so when it gets the focus I call an action that
generates the drop-down I need?

Thanks a lot.

Pepe

Are you using a frequency on your observer? If not try adding one
:frequency => 0.25

Yes, I am. BTW, is there a way of telling the auto-complete to run
‘onkeyup’?

Thanks.

Pepe

On Aug 6, 9:33 am, MW Administrator [email protected]

I would imagine there is - check out the source code (in the plug in if
you’re going that route).

I had corrected a similar issue via the frequency - wish I could have
been more help.

Don’t worry. I’m sure I’ll get through this one too. :wink:

Thanks.

Pepe

On Aug 6, 9:57 am, MW Administrator [email protected]