Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2014-12-11 17:00:55
- richtestani
- Plugin Author
- Registered: 2009-11-08
- Posts: 128
Include jQueryUI in admin write article
I’m updating a plugin to allow some interactions from the jQuery UI library.
While I output a script to include the file, it seems to load late on the page,
so the functions that are used do not work and methods are undefined.
Anyone know how to properly include external javascripts in your admin side plugin?
Thank you
Rich
Offline
Re: Include jQueryUI in admin write article
Try to
register_callback('your_js', 'admin_side', 'head_end');
and echo '<script src="..."></script>';
in your_js()
function.
Offline