What are people doing to make sure their ajax responses apply to pages
in the correct order? I'm using an onkeyup form component updater for a
find-as-you-type query a fairly large database. Incorrect results are
often rendered because the second-to-last request responds after the
actual last request. (This makes sense, as a query returning fewer
results is often faster.)

It's a "like '%token%'" query so mysql has to scan the whole table.
Bummer, but I need that first %. I played around with the throttle delay
but it didn't make a difference. I'd like to just throw out the
out-of-order response. Even better would be if the ajax request didn't
happen until the user paused typing.

Any ideas?


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Wicket-user mailing list

Reply via email to