I used the observe_form to build a live search. It worked perfect until
I loaded a large amount of data and tested it in a production
when I am searching for ‘john’ I type in ‘j’, ‘o’, ‘h’, and then finally
‘n’. The observe field goes through and sends me the correct values but
then searches for only ‘j’ at the end.
I think it is because the ‘j’ request takes up more time then the full
‘john’ and it still process that request, but it unfortunately processes
them out of order.
create a hidden field that increments the requests. If I get a request
back that is less than the current one I know not to process it.
Any other ideas?
increment function and check function, but I’m not quite sure how to
work this out with the observe_field. when would i fire these