WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] [Script.aculo.us] I can’t get autocomplete to work from WordPress

[Resolved] [Script.aculo.us] I can’t get autocomplete to work from WordPress

  • 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?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Script.aculo.us] I can’t get autocomplete to work from WordPress’ is closed to new replies.
Skip to toolbar