WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Script.aculo.us] I can't get autocomplete to work from WordPress (2 posts)

  1. spstieng
    Member
    Posted 5 years ago #

    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?

  2. spstieng
    Member
    Posted 5 years ago #

    It was simple.
    WP cannot use the latest jQuery library in the backend.

Topic Closed

This topic has been closed to new replies.

About this Topic