Conflict with autosuggest.
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 | I enqueued via |
June 7, 2013 at 8:09 am 4639 | |
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)