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_
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
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
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
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
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/
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
7 matches
Mail list logo