[jQuery] Re: AutoComplete -bassistance

2008-08-26 Thread Jörn Zaefferer
Try this instead: $("#name").autocomplete("employeedirectory?command=ajax&limit=10"); Appending the parameter isn't your task - the plugin does handle that. Just as the event handling... I can highly recommend to read a few jQuery tutorials, eg. start with this http://docs.jquery.com/How_jQuery_

[jQuery] Re: AutoComplete -bassistance

2008-08-26 Thread kreiss
Jorn, Thanks for sticking w/ me...I almost have it! However below is the url i'm sending but the "q" value is not being recognized in my servlet...I'm I sending it over correctly? //JAVASCRIPT $(function() { $("#name").autocomplete("employeedirectory?command=ajax&q=" + document.forms[0].emp

[jQuery] Re: AutoComplete -bassistance

2008-08-25 Thread Jörn Zaefferer
Look: $(function() { $("#name").autocomplete("someurl"); }); That does nothing but bind a few event handlers. It doesn't create DOM elements, nor does it load any records. As soon as the user starts typing, the keyup-event-handler loads some data via ajax - how many rows are returned is up to

[jQuery] Re: AutoComplete -bassistance

2008-08-25 Thread kreiss
First of all...thanks for the help! I have about 4500 records in the database (its an employee database)...if I understand correctly...on the document ready should I bring in all 4500 records? Would the autocomplete be slow to respond due to all the records The reason I was doing an onKeyUp

[jQuery] Re: AutoComplete -bassistance

2008-08-25 Thread Jörn Zaefferer
You're binding the autocomplete on keyup, which binds another keyup event - every time. Remove your inline event handler and initialize the autocomplete just once on document ready. Jörn On Mon, Aug 25, 2008 at 4:52 PM, kreiss <[EMAIL PROTECTED]> wrote: > > Following the documentation, it seems I

[jQuery] Re: AutoComplete -bassistance

2008-08-25 Thread kreiss
Following the documentation, it seems I'm doing it correctly...I'm getting data back from my database, but I just have to click out of the textbox first before I see the data, other than that it works great. Jörn Zaefferer wrote: > Please take a look at the examples here: > http://dev.jquery.com/

[jQuery] Re: AutoComplete -bassistance

2008-08-22 Thread Jörn Zaefferer
Please take a look at the examples here: http://dev.jquery.com/view/trunk/plugins/autocomplete/demo/ The "remote" examples are based on PHP, but still show the essential stuff. You've got it all mixed up. Jörn On Fri, Aug 22, 2008 at 9:57 PM, kreiss <[EMAIL PROTECTED]> wrote: > > I'm close to ge