Strange autocomplete error on submit
Using autocomplete to grab pipe-delimited data via ajax (as in the demo), and it works fine. Then I use:
- $("input#MyField").result(log);
to run a function to populate some form fields on the page, which also works.
- function log(event, data, formatted) {
document.addPlayerForm.uppr_p_w_address.value = data[1];
document.addPlayerForm.uppr_p_w_city.value = data[2];
// 7 or 8 more fields populated here
}
However, client is reporting that intermittently (say 25% of the time), when they click "Submit" on the form, all fields are somehow "lost" and it just does a POST of nothing.
I tried upgrading jquery from 1.2.6 to 1.3.2, no dice. It's intermittent, and I would imagine this is perhaps a DOM issue on their site? Has anyone ever experienced something like this?