grab or load text on demand

You should really take a look at the AJAX in Plugins article. It gives examples of how to setup AJAX the proper way in WordPress. Here’s the basic workflow of using AJAX in WordPress: Create an enqueue your custom JavaScript file that uses jQuery.post or jQuery.get or jQuery.ajax Create a callback for the wp_ajax action … Read more

How to use Jeditable plugin with admin-ajax.php?

Here is another way: $(‘.editable’).editable(function(value, settings) { $.post( ajaxurl, { action: ‘ajax_action’, data: data, moreData: moreData }, function(response) { }); return(value); }, { submit: ‘Ok’, tooltip: ‘Click to edit title’, cancel : ‘Cancel’, event : “dblclick” }); where value is what has been inserted in the editable field.

Problem with ajax plugin for refreshing posts

I think what’s happening is that the jQuery is not able to destroy the element because it is not wrapped in the .random-post li. Try adding that back in and see if it fixes your code. Also, just a note, you added a space in random-post-excerpt that was not there in the original.

Tabbed feeds with ajax vs. without on homepage [closed]

I would go with jQuery UI tabs where the feeds would be hidden because WordPress caches feeds for 12 hours using the Transients API. This would be less expensive than doing an Ajax call for each tab. Use fetch_feed to parse and and cache. The cache times can be filtered using wp_feed_cache_transient_lifetime.

How to make image in TinyMCE clickable

To your primary question: It’s a tinymce plugin and can be found here: wp-includes/js/tinymce/plugins/wpeditimage/ I’m not sure but I guess you would have to rewrite some code if you want to use it with a non-wp instance of tinymce. Never tried it, but I’m pretty sure it will not work out of the box. Second … Read more

Register Template

Your form is displaying twice because you are handling your AJAX wrong, and using the template that shows the form as the response too. You need to wrap the form code in an if else statement that checks if there is an AJAX request currently in operation. But more obviously, you’re going about AJAX completely … Read more