I am trying to use the Jquery's autocomplete by adding
/i/libraries/apex/minified/widget.autocomplete.min.js into Javascript' s File URLs, and
/i/libraries/jquery-ui/1.8.22/themes/base/jquery.ui.autocomplete.css into into CSS ' File URLs.
The web console shows these two files are loaded as shown below, but my reference to the function autocomplete is failed with the error TypeError: $(...).autocomplete is not a function.
GET https://xxx.yyy.com/i/libraries/jquery-ui/1.8.22/themes/base/jquery.ui.autocomplete.css [HTTP/1.1 304 Not Modified 45ms]
GET https://xxx.yyy.com/i/libraries/apex/minified/desktop_all.min.js [HTTP/1.1 304 Not Modified 45ms]
GET https://xxx.yyy.com/i/libraries/apex/minified/legacy.min.js [HTTP/1.1 304 Not Modified 45ms]
GET https://xxx.yyy.com/i/libraries/apex/minified/widget.autocomplete.min.js [HTTP/1.1 304 Not Modified 44ms]
GET https://xxx.yyy.com/i/themes/theme_26/css/4_2.css [HTTP/1.1 304 Not Modified 74ms]
GET https://xxx.yyy.com/i/themes/theme_26/js/4_2.js [HTTP/1.1 304 Not Modified 73ms]
GET https://xxx.yyy.com/i/f_spacer.gif [HTTP/1.1 304 Not Modified 35ms]
GET https://xxx.yyy.com/i/e.gif [HTTP/1.1 304 Not Modified 35ms]
TypeError: $(...).autocomplete is not a function f:130
GET https://xxx.yyy.com/i/themes/theme_26/images/app_theme.png [HTTP/1.1 304 Not Modified 35ms]
GET https://xxx.yyy.com/i/apex/builder/dev-bar.png
The javascript code is just an empty call to the funtion
jQuery(function(){
$("#P1_TEST").autocomplete({
source: function( request, response) {}
});
});
My Apex version is 4.2.2.00.11.
Any advice is greatly appreciated.
Vu