[jQuery] Re: autocomplete questions

2008-09-10 Thread [EMAIL PROTECTED]
Hmm, I'll have to look at the autocomplete code further. onChange isn't a jQuery function, but it is the internal function used by the autocomplete add-on to initiate the "usual" search process. At first glance since autocomplete was just extending jQuery I thought you could call it directly, bu

[jQuery] Re: autocomplete questions

2008-09-10 Thread Shelane Enos
That resulted in the error "onChange" is not a function. I set it to "change" since that's the jQuery function. It still didn't do anything. On 9/10/08 11:24 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > try: > $('#topic1').focus(function(){ $('#topic1').onChange(0,true);} > > > O

[jQuery] Re: autocomplete questions

2008-09-10 Thread [EMAIL PROTECTED]
try: $('#topic1').focus(function(){ $('#topic1').onChange(0,true);} On Sep 9, 8:57 am, Shelane <[EMAIL PROTECTED]> wrote: > To no avail, I tried adding this line: > > $('#topic1').trigger('keydown'); > > I also tried it as: > > $('#topic1').trigger('keypress'); > > to make this function like thi

[jQuery] Re: autocomplete questions

2008-09-09 Thread Shelane
To no avail, I tried adding this line: $('#topic1').trigger('keydown'); I also tried it as: $('#topic1').trigger('keypress'); to make this function like this: $('#topic1').focus(function(){ $('#topic1').search(); $('#topic1').trigger('keydown'); }); neither caused it to work.

[jQuery] Re: autocomplete questions

2008-09-08 Thread [EMAIL PROTECTED]
Sorry I wasn't very clear, I don't mean to have your users do that, I mean it gave you a clue how that function worked. You need to add an on-focus event to the field that then bubbles a key- up event that will trigger the autocomplete for the user. http://docs.jquery.com/Release:jQuery_1.2/Event

[jQuery] Re: autocomplete questions

2008-09-08 Thread Shelane Enos
Adding the following resulted in the search string being sent to the server, but the results weren't displayed (I can see the results with Firebug): $('#topic1').focus(function(){  $('#topic1').search(); }); On 9/8/08 11:59 AM, "MorningZ" <[EMAIL PROTECTED]> wrote: > > For #2 > > perhaps

[jQuery] Re: autocomplete questions

2008-09-08 Thread MorningZ
For #2 perhaps the ".search" option will do the trick? http://docs.jquery.com/Plugins/Autocomplete/search perhaps wire that up to the "focus" event of the textbox

[jQuery] Re: autocomplete questions

2008-09-08 Thread Shelane Enos
This worked. Thanks. Now, if I can just get something for question 2 :-) On 9/8/08 10:45 AM, "MorningZ" <[EMAIL PROTECTED]> wrote: > > For > > "Can you submit additional parameters based on the value of another > input field?" > > http://docs.jquery.com/Plugins/Autocomplete#Dependencies_be

[jQuery] Re: autocomplete questions

2008-09-08 Thread MorningZ
For "Can you submit additional parameters based on the value of another input field?" http://docs.jquery.com/Plugins/Autocomplete#Dependencies_between_fields

[jQuery] Re: autocomplete questions

2008-09-08 Thread Shelane Enos
Yes, I saw that little enter then back space. That's horrible user interface to rely upon. Users wouldn't know that and I'd hate to tell them to do that. I'm not sure how I would accomplish your proposed work-around. On 9/8/08 10:24 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > For

[jQuery] Re: autocomplete questions

2008-09-08 Thread [EMAIL PROTECTED]
For your "question 2", if you type something into the last field, and then hit backspace it will show the whole list - so the "0" character setting is working. Without diving into the autocomplete library, I'd wager that it is triggering on keyup. You want to add or modify the handler so that it