Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2014-12-11 21:00:56

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

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

Board footer

Powered by FluxBB