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
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
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
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.
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
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
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
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
For
"Can you submit additional parameters based on the value of another
input field?"
http://docs.jquery.com/Plugins/Autocomplete#Dependencies_between_fields
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
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
11 matches
Mail list logo