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 this:
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);}
On Sep 9, 8:57
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, but
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
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 your
For
Can you submit additional parameters based on the value of another
input field?
http://docs.jquery.com/Plugins/Autocomplete#Dependencies_between_fields
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_between_fields
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
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 the
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.
10 matches
Mail list logo