I'm looking for a Wordpress plugin that will allow me to insert javascript into the HTML editor. Here's the problem though: I need to be able to insert PHP within the script I'm inserting.
Here's the particular bit of javascript I'm trying to embed:
I'm using another Wordpress plugin that allows me to use [insert_php] instead of <?php in the HTML editor, so I would like a javascript plugin that will let me use the PHP plugin I'm currently using.
Any suggestions?
Here's the particular bit of javascript I'm trying to embed:
Code:
<!--this function enables autocompletion for a text input box using jQuery.js-->
$(function() {
var availableTags = [
<?php list_webcode('http://www.link.to.a.file.com'); ?>
];
$( "#tags" ).autocomplete({
source: availableTags
});
});
I'm using another Wordpress plugin that allows me to use [insert_php] instead of <?php in the HTML editor, so I would like a javascript plugin that will let me use the PHP plugin I'm currently using.
Any suggestions?