Plugin / Ajaxize

Yoav Aner

Frequently Asked Questions (FAQ)

To ajaxize your plugin or function, the only thing you need is the function name. Go to Settings->ajaxize and enter your function name. Then click ‘Generate DIV’. If all is working fine you should get a div that you can add to any page, post or template. You should also see the output of the generated div below.
Many plugins come with shortcodes or function names that can be entered directly into the template. It is usually within the plugin documentation. Search the documentation for information how to use the plugin in your templates. Otherwise, you can try the plugin editor (Plugins->Editor), select your plugin and then search for the function name inside the php code.
Yes. 1. Functions must return valid HTML – this will be called in php and returned via the Ajax call 2. Functions cannot accept any parameters (at least at the moment)
Try ‘ajaxize_test’ (without the quotes) and click Generate DIV to test it.
The secret key is there to allow you to ajaxize any function you want, but only the functions you want and not others. The secret key is used to create a ‘signature’ on the div you generate. This signature is generated using HMAC, and the Secret Key is the key used by HMAC. A few notes about the secret key: 1. A random Secret Key is automatically generated when the plugin is first installed. 2. You can change your secret key, but please be aware that any previously-generated divs will stop working. 3. Do not post or share this key! Please only change it if you know what you’re doing.
This is a normal div. The only part that you cannot change is the id section. Even the smallest change to the id will invalidate the signature, and it will stop working. Therefore, if you have a new function you also want to ajaxize – you’d have to use the ajaxize generator. Don’t just replace the function name, because the signature will not be valid for any other function.
ajaxize is most suitable when you are using a caching solution (W3 Total Cache, WP Super Cache etc). With ajaxize you can keep the page cached, but still pull content dynamically. Best used for quotes, feedbacks, statistics etc, but can work on almost any type of output. It might also be useful to speed up page loads with plugins like Facebook and Twitter buttons (which often take some time to load if embedded directly). It won’t make you rich in 21 days nor will it make your pencil longer.
Yes, but currently you’d have to write your own javascript for it. Here is a small example using jQuery (replace with your own div id):
Check that the function name is correct, do not include brackets. Use: some_function instead of some_function(). Make sure the function does not require any parameters either.
Some plugins/functions produce iframes and other content that might only get displayed in the right context. In general, if there’s an error, you would get an error message on the settings page. Try to copy the div into a post instead. It might still work.
You can try de-selecting the Ajax Referer Check option. For security reasons, please check that your ajaxize function doesn’t have any side-effects. It is recommended to keep this option On. Only use if you understand the risks. For more information, please see https://codex.wordpress.org/Function_Reference/check_ajax_referer

Ratings

4.5
4 reviews

Rating breakdown

Details Information

Version

1.4.3

First Released

25 Jun, 2011

Total Downloads

15,689

Wordpress Version

3.1 or higher

Tested up to:

4.5.13

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.