I have tested this outside wordpress, and it works fine.
But when I put the same code inside wordpress, then nothing happends.
My guess is that the auto.php file is not called.
document.observe('dom:loaded', function()
{ new Ajax.Autocompleter('state_input', 'state_suggestions','auto.php'); }
);
I've even tried adding WP_PLUGIN_URL."/wp-store-locator/"
new Ajax.Autocompleter('state_input', 'state_suggestions','<?php echo WP_PLUGIN_URL . "/wp-store-locator/" ?>auto.php');
But that doesn't do it either.
Do I have to use WP_PLUGIN_DIR?
What is it that I don't see?