Up to 50 percent off

Conflict with autosuggest.

This topic contains 2 reply and 2 voices, and was last updated by noomia 11 years, 5 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
June 6, 2013 at 7:48 am 4606
noomia Hi Tareq ! It seems I have a big problem here... I've bought this plugin to have an autosuggest search form. Wordpress with only this plugin, it works well. Then, if I activate WPUF Pro, I have a script error that brake autosuggest plugin : Uncaught Error: cannot call methods on autocomplete prior to initialization; attempted to call method 'http://.../wp-admin/admin-ajax.php' It seems that this is a conflict with the jquery-ui you enqueue. If I desactivate WPUF and add in my function.php : - wp_enqueue_script('jquery-ui-core');, autosuggest works. - wp_enqueue_script( 'jqueryUi', 'http://code.jquery.com/ui/1.10.2/jquery-ui.js', array('jquery'), '1.0', true );, autosuggest doesn't work. So It seems that the problem is How jQuery-ui is enqueued... How do you enqueue jQuery-ui in WPUF ? Could it be changed ? Thanks
June 6, 2013 at 5:48 pm 4625
Tareq Hasan Tareq Hasan

I enqueued via wp_enqueue_script('jquery-ui-core');, because the other jQuery UI is very old and that might be conflicting.

June 7, 2013 at 8:09 am 4639
noomia noomia

Ok thanks Tareq,

It seems it’s a conflict with jquery-ui-autocomplete and the autosuggestplugin…

Viewing 2 Posts - 1 through 2 (of 2 total)