How to modify iFrame content in an admin thickbox

jQuery(document).ready(function($) { $(‘.yourlink’).click(function() { tbframe_interval = setInterval(function() { $(‘#TB_iframeContent’).contents().find(‘.savesend input[type=”submit”]’).val(‘changed the button text’); }, 2000); tb_show(”, ‘media-upload.php?type=image&TB_iframe=true’); return false; }); }); http://www.webmaster-source.com/2010/01/08/using-the-wordpress-uploader-in-your-plugin-or-theme/ you can also enqueue a script on the media upload page that should be available in you iframe, don’t know if that will do it though. am working on something very similar to … Read more

Uncaught TypeError: Object # has no method ‘datepicker’ [closed]

This line shouldn’t be in there: <script type=”text/javascript” src=”http://xxxx/wp-includes/js/jquery/ui/jquery-ui.min.js”></script> In a standard WordPress install, no such file exists. This makes me wonder how you are adding the scripts to the theme in the first place. Are you using wp_enqueue_styles? If not, there is a VERY good chance that you are indeed adding two versions of … Read more

jQuery .load and WP function

Your quick chat function is being loaded to late. It needs to be loaded in the proper WordPress sequence by adding it through a plugin or in functions.php.

Theme has superfish – how to add supersubs?

Have you tried adding this to the themes functions.php? function add_supersubs() { wp_enqueue_script(‘superfish’, get_stylesheet_directory_uri() . ‘/js/superfish.js’); wp_register_script(‘supersubs’, get_stylesheet_directory_uri() . ‘/js/supersubs.js’,’superfish’); wp_enqueue_script(‘supersubs’); } add_action(‘wp_enqueue_scripts’, ‘add_supersubs’); // this assumes the supersubs.js is in the js folder of the main theme directory. You’ll also need to modify the header js to fit supersubs.

ajax not working in plugin

First of all I would recommend you to look through AJAX in Plugins article. If it doesn’t help, take in consideration these articles as well: Simplified AJAX For WordPress Plugin Developers using Jquery jQuery and Ajax in WordPress Plugins – Administration Pages jQuery and Ajax in WordPress Plugins – Public Pages

Sorting dynamic table content with jQuery

You might try calling the table by ID instead of the generic ‘table’. Also, wrap your JS in a noconflict wrapper like this: (function($) { $js162(function(){ $js162(“#actArchive”).tablesorter({ headers: { 0: { sorter: “text” }, 1: { sorter: “digit” }, 2: { sorter: false }, 3: { sorter: false } } }); }); })(jQuery);