I downloaded the latest trunk, but I got no output. The server was still returning results - autocomplete just didn't display them. I have reverted back whatever the last version was that I had for now.
On 5/3/07 9:24 AM, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > > Jeff Fleitz schrieb: >> I thought I had it working, but I don't, I am still having issues. I >> have two lookups on the same form, and the data is returned fine. >> data[0] is the text description and data[1] is the primary key of the >> lookup table. I am trying to pass the values to some hidden fields. >> I am using the code block you gave me, and it works with one call, but >> not two. Why doesn't the following work? The ignore1 value gets >> populated every time, but the ignore2 value never gets populated for >> some reason. >> >> $("#unitname").result(function(event, data, formatted) { >> $("#ignore1").value = $(this).next().val(data[0]); >> $("#ignore2").value = $(this).next().val(data[1]); >> }); >> > That doesn't make much sense. It looks like you really want to do simply > this: > > $("#unitname").result(function(event, data, formatted) { > $("#ignore1").val(data[0]); > $("#ignore2").val(data[1]); > }); > > Or just this: > > $("#unitname").result(function(event, data, formatted) { > $(this).next().val(data[0]).next().val(data[1]); > }); > > Depends on your form layout. >> I have all this working using Dan Switzer's implementation and a combo >> of procedural js and jquery syntax, but i am trying to get it work >> here to, using all jquery stuff, so that we are onboard when this >> plugin becomes the primary implementation. >> > Let me know if that doesn't work yet. It always helps a lot to take a > look at an example page. If necessary, try to extract the interesting > parts from your application. I'm sure we can figure it out.