Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to load jquery 's widget.autocomplete.min.js into Apex page ?

vuatabcOct 11 2014 — edited Oct 14 2014

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

This post has been answered by Tom Petrus on Oct 12 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 11 2014
Added on Oct 11 2014
2 comments
822 views