Title: Ajaxize
Author: yoav.aner
Published: <strong>26 Haziran 2011</strong>
Last modified: 19 Haziran 2016

---

Eklentilerde ara

Bu eklenti, **WordPress’in son 3 ana dağıtımı ile test edilmemiş**. Artık bakımı
yapılmıyor veya desteklenmiyor olabilir ve WordPress’in daha güncel sürümleriyle
birlikte kullanıldığında uyumluluk sorunları olabilir.

![](https://s.w.org/plugins/geopattern-icon/ajaxize.svg)

# Ajaxize

 [yoav.aner](https://profiles.wordpress.org/yoavaner/) tarafından

[İndir](https://downloads.wordpress.org/plugin/ajaxize.1.4.3.zip)

 * [Detaylar](https://tr.wordpress.org/plugins/ajaxize/#description)
 * [İncelemeler](https://tr.wordpress.org/plugins/ajaxize/#reviews)
 *  [Kurulum](https://tr.wordpress.org/plugins/ajaxize/#installation)
 * [Geliştirme](https://tr.wordpress.org/plugins/ajaxize/#developers)

 [Destek](https://wordpress.org/support/plugin/ajaxize/)

## Açıklama

[Ajaxize](http://blog.gingerlime.com/ajaxizing/) will allow you to ajaxize almost
any php function on your site.
 It can be a plugin, a function you wrote, or even
a core wordpress function.

1.4 : Removed deprecated split function
 Added an option to remove Ajax referer 
protection (not recommended, but helpful in some rare cases) Tested for compatibility
with WordPress 4.x

1.3 : Updated to work within 404 templates (thanks to ovidiubica for reporting)

1.2 : Small security improvements (added nonce to the javascript) and tested with
WordPress 3.2.1

New in 1.1: Context Awareness. Ajaxize is now setting the correct context for functions
automatically. Special thanks to [One Trick Pony](http://digitalnature.eu/) for 
helping set the hook in the right place.

## Yükleme

Automatic install:

Using the WordPress dashboard

 * Login to your weblog
 * Go to Plugins
 * Select Add New
 * Search for ajaxize
 * Select Install
 * Select Install Now
 * Select Activate Plugin

Manual:

 * Upload “ajaxize” folder to the “/wp-content/plugins/” directory.
 * Activate the plugin through the “Plugins” menu in WordPress.
 * Further information is available on the Settings->Ajaxize menu

## SSS

  How does ajaxize work?

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.

  How do I find the correct function name?

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.

  Are there any limitations to which functions I can use?

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)

  How can I test if ajaxize is working?

Try ‘ajaxize_test’ (without the quotes) and click Generate DIV to test it.

  What is the Secret Key? Do I need to change 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.

  Can I add stuff or modify the div?

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.

  What is this good for?

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.

  Can I automatically refresh the div every X seconds?

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):

    ```
    <script>
    jQuery(document).ready(function($) {
        var refreshId = setInterval(function() {

            var $data = $('div[id*="ajaxize_this:REPLACE_THIS"]');
            $data.each( function() {
                $data.fadeOut(2000, function() {
                    var newquery = $.query.set('ajaxize_this', $data.attr('id')).set('_wpnonce', ajaxizeParams._wpnonce);
                    $data.load(location.pathname + newquery, function() {
                        $data.fadeIn(2000);
                    });
                });
            });

            return false;
        }, 10000);
    });
    </script>
    ```

  I’m getting an error after generating a DIV “ajaxize: Error executing . Is this
function correct?” What’s wrong?

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.

  I generate a DIV but the Function output is empty. Why?

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.

  I’m getting -1 instead of the content some times. Is there anything I can do?

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

## İncelemeler

![](https://secure.gravatar.com/avatar/d45c63067183e8d585f6e893135b208d63f43cb60a1ea4d458ebabcd00762361?
s=60&d=retro&r=g)

### 󠀁[Awesome plugin](https://wordpress.org/support/topic/awesome-plugin-1652/)󠁿

 [brainman](https://profiles.wordpress.org/brainman/) 3 Eylül 2016 1 yanıt

This plugin keeps parts of my site dynamic while using WP Super Cache plugin. Works
great and its very easy to use 🙂 Big thanks to the author!

![](https://secure.gravatar.com/avatar/35dc5fda32233d3345764a84a64ddf9bd456edb180307829702cf282980fed6b?
s=60&d=retro&r=g)

### 󠀁[Useful!](https://wordpress.org/support/topic/useful-349/)󠁿

 [DareDevil73](https://profiles.wordpress.org/daredevil73/) 8 Şubat 2017

Useful.

 [ 4 incelemeyi oku ](https://wordpress.org/support/plugin/ajaxize/reviews/)

## Katkıda Bulunanlar ve Geliştiriciler

“Ajaxize” açık kaynaklı yazılımdır. Aşağıdaki kişiler bu eklentiye katkıda bulunmuşlardır.

Katkıda bulunanlar

 *   [ yoav.aner ](https://profiles.wordpress.org/yoavaner/)

[“Ajaxize” eklentisini dilinize çevirin.](https://translate.wordpress.org/projects/wp-plugins/ajaxize)

### Geliştirmeyle ilgilenir misiniz?

[Kodu görüntüleyin](https://plugins.trac.wordpress.org/browser/ajaxize/), [SVN deposuna](https://plugins.svn.wordpress.org/ajaxize/)
göz atın ya da [RSS](https://plugins.trac.wordpress.org/log/ajaxize/?limit=100&mode=stop_on_copy&format=rss)
ile [geliştirme günlüğüne](https://plugins.trac.wordpress.org/log/ajaxize/) abone
olun.

## Değişiklik Kaydı

#### 1.4

Removed deprecated split function
 Added an option to remove Ajax referer protection(
not recommended, but helpful in some rare cases) Tested for compatibility with WordPress
4.0

#### 1.3

Updated to work within 404 templates (thanks to ovidiubica for reporting)

#### 1.2.1

Small change to documentation only.

#### 1.2

Small security improvements (added nonce to the javascript) and tested with WordPress
3.2.1

#### 1.1

Context information is much better handled in ajaxize. Special thanks to One Trick
Pony.

#### 1.0.2

Code tidy-up. No functionality changes

#### 1.0.1

quickfix for an all-encompasing hook that breaks lots of other wordpress functionality.

#### 1.0

 * First release

## Meta

 *  Sürüm **1.4.3**
 *  Son güncelleme **10 yıl önce**
 *  Etkin kurulumlar **30+**
 *  WordPress sürümü ** 3.1 veya üstü **
 *  Test edilen sürüm **4.5.33**
 *  Dil
 * [English (US)](https://wordpress.org/plugins/ajaxize/)
 * Etiketler
 * [ajax](https://tr.wordpress.org/plugins/tags/ajax/)[cache](https://tr.wordpress.org/plugins/tags/cache/)
   [Dynamic](https://tr.wordpress.org/plugins/tags/dynamic/)[javascript](https://tr.wordpress.org/plugins/tags/javascript/)
 *  [Gelişmiş görünüm](https://tr.wordpress.org/plugins/ajaxize/advanced/)

## Puanlar

 5 üzerinden 4.5 yıldız.

 *  [  3 5 yıldızlı inceleme     ](https://wordpress.org/support/plugin/ajaxize/reviews/?filter=5)
 *  [  0 4 yıldızlı inceleme     ](https://wordpress.org/support/plugin/ajaxize/reviews/?filter=4)
 *  [  1 3 yıldızlı inceleme     ](https://wordpress.org/support/plugin/ajaxize/reviews/?filter=3)
 *  [  0 2 yıldızlı inceleme     ](https://wordpress.org/support/plugin/ajaxize/reviews/?filter=2)
 *  [  0 1 yıldızlı inceleme     ](https://wordpress.org/support/plugin/ajaxize/reviews/?filter=1)

[İncelememi ekle](https://wordpress.org/support/plugin/ajaxize/reviews/#new-post)

[Tüm değerlendirmeleri görün](https://wordpress.org/support/plugin/ajaxize/reviews/)

## Katkıda bulunanlar

 *   [ yoav.aner ](https://profiles.wordpress.org/yoavaner/)

## Destek

Söyleyeceğiniz bir şey mi var? Yardım mı lazım?

 [Destek forumunu görüntüle](https://wordpress.org/support/plugin/ajaxize/)