Search
-
Recent Posts
Tags
adwords amazon analytics api apple aws blog chrome chromium cloud Design dropbox ec2 email error facebook firefox google google-apps homebrew ipad javascript jQuery linux lion mac microsoft mysql osx os x paypal php plugin quicksilver raspberry pi scam social spam twitter ubuntu unix video windows woo wordpress
Tag Archives: jquery ui
WordPress: How to wp_enqueue_script jquery-ui / autocomplete
If you are trying to enqueue jquery’s autocomplete in wordpress, I’d suggest just using the remote version through google’s CDN / API site. You can deregister the jquery-ui with the first line of code, re-register it with the second line of code, and then activate it with the third line of code: wp_deregister_script(‘jquery-ui’); wp_register_script(‘jquery-ui’,’http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js’,array(‘jquery’)); wp_enqueue_script(‘jquery-ui’); You may also want to enqueue the styles using something like: wp_enqueue_style(‘jquery-style’, ‘http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css’); And more recently I found this project on GitHub which has some nice examples and code that may be more updated than the version included with wordpress: https://github.com/dyve/jquery-autocomplete
Jquery UI Date Picker
I was playing with the Jquery date picker module and for some reason it came up in Japanese by default! Totally cool.