Title: AJAX Manufactory
Author: Epsiloncool
Published: <strong>7 septembre 2015</strong>
Last modified: 28 juin 2019

---

Recherche d’extensions

![](https://ps.w.org/ajax-manufactory/assets/banner-772x250.png?rev=1737606)

Cette extension **n’a pas été testée avec plus de trois mises à jour majeures de
WordPress**. Elle peut ne plus être maintenue ou supportée et peut avoir des problèmes
de compatibilité lorsqu’elle est utilisée avec des versions de WordPress plus récentes.

![](https://ps.w.org/ajax-manufactory/assets/icon-256x256.png?rev=1737606)

# AJAX Manufactory

 Par [Epsiloncool](https://profiles.wordpress.org/epsiloncool/)

[Télécharger](https://downloads.wordpress.org/plugin/ajax-manufactory.zip)

 * [Détails](https://fr.wordpress.org/plugins/ajax-manufactory/#description)
 * [Avis](https://fr.wordpress.org/plugins/ajax-manufactory/#reviews)
 *  [Installation](https://fr.wordpress.org/plugins/ajax-manufactory/#installation)
 * [Développement](https://fr.wordpress.org/plugins/ajax-manufactory/#developers)

 [Support](https://wordpress.org/support/plugin/ajax-manufactory/)

## Description

Whenever you plan to begin developing applications on WordPress using AJAX technology,
you have to solve a number of
 minor issues unrelated to the logic of your application:

 * How to package and transmit data from the browser to the server, so they will
   not have been distorted?
 * How to transfer data, if they are multi-dimensional array?
 * How to implement a custom processing of AJAX response in case, again, it represents
   a complex set of data (a typical
    example – form sending and on-server validation)?
 * How to handle data transition errors?
 * How to debug all this stuff?

Usually these issues generates a lot of spaghetti code, moreover, each new request
type requires some customization of
 code. Managing all of this, you forget about
the function that you would like to implement.

AJAX Manufactory plugin for WordPress have most of these tasks already solved. You
can think about functionality and
 business logic instead.

What you can have from the box:

 * A simple function at the client side which allows to send any your complex data
   from javascript to WordPress server
    side.
 * An AJAX response wrapper at the server side which gives to you sent data as PHP
   array and allows you to create
    an AJAX response as a set of simple « commands»
   like « make an alert », « set up javascript variable », « put html text to specific
   html node(s) », « execute a javascript function », « go to specific URL » etc.
 * Automatic execution of « commands » queue at the client side. Additionally you
   can specify your own callback.

#### Documentation

Please refer [Documentation](http://e-wm.org/ajax-manufactory/#documentation).

## Installation

 1. Unpack and upload `ajax-manufactory` folder with all files to the `/wp-content/
    plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## FAQ

  Where can I put some notices, comments or bugreports?

Do not hesistate to write to us at [Contact Us](http://e-wm.org/contact/) page.

## Avis

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

### 󠀁[Good!](https://wordpress.org/support/topic/good-3714/)󠁿

 [nik55555](https://profiles.wordpress.org/nik55555/) 11 août 2018

Excelent!

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

### 󠀁[No actual documentation!](https://wordpress.org/support/topic/no-actual-documentation/)󠁿

 [zogthefuzzy](https://profiles.wordpress.org/zogthefuzzy/) 10 février 2017

I found this plugin to be very exasperating, because the only documentation it has
is how to install it. There is NOTHING on how to actually use it. One BIG thumb 
down.

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

### 󠀁[Awesome stuff!](https://wordpress.org/support/topic/awesome-stuff-18/)󠁿

 [bones852](https://profiles.wordpress.org/bones852/) 3 septembre 2016

Very elegant solution. Working with a lot of ajax was pretty boring, but now it's
not. Thank you!

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

### 󠀁[Good plugin, saves time and pretty easy to use.](https://wordpress.org/support/topic/good-plugin-saves-time-and-pretty-easy-to-use/)󠁿

 [itPro](https://profiles.wordpress.org/ai1dro0knotbot/) 3 septembre 2016

I found this plugin when I was trying to develop ajax content update with built 
in wordpress tools. Mostly syntax is pretty straightforward and self explanatory.
Tricky part is when you need to pass variables back to page. Luckily plugin developer
appeared very nice person and pointed me how to use plugin nice and easy. Now here's
the trick: Say, we want send two variables to php side, process that data and show
alert only for birds. Note: you can change "myaction" to whatever you like. On html
side we embed javaScript: jxAction('myaction', {'variable_name': 'apples','another_variable':'
penguins'}, function(v){ alert(v['birds']); }); On php side in functions.php we 
add action hook: add_action('jx_myaction', function($jx){ $data = $jx->data; //this
is array with our variables $bird = 'penguins'; foreach ( $data as current_var ){//
here we write desired values to array that will be returned. if ( $current_var =
= $bird ) $jx->variable('birds', $fname); } }); That's pretty much it. p.s. IMPORTANT!
In case of error on php side, you might get "Wrong jx JSON response (not JSON)" 
message. Then you should check webserver logs for errors. My recommendations, five
stars.

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

### 󠀁[This methodology is good](https://wordpress.org/support/topic/this-methodology-is-good/)󠁿

 [Epsiloncool](https://profiles.wordpress.org/epsiloncool/) 3 septembre 2016

Putting "interface part" out of your mind, you can always concentrate on the logic
itself. It is increasing programming productivity and lower human errors.

 [ Lire les 5 avis ](https://wordpress.org/support/plugin/ajax-manufactory/reviews/)

## Contributeurs/contributrices & développeurs/développeuses

« AJAX Manufactory » est un logiciel libre. Les personnes suivantes ont contribué
à cette extension.

Contributeurs

 *   [ Epsiloncool ](https://profiles.wordpress.org/epsiloncool/)

[Traduisez « AJAX Manufactory » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/ajax-manufactory)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/ajax-manufactory/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/ajax-manufactory/), ou
s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/ajax-manufactory/)
par [RSS](https://plugins.trac.wordpress.org/log/ajax-manufactory/?limit=100&mode=stop_on_copy&format=rss).

## Journal des modifications

#### 1.7.11

 * Changed name back (it was prohibited)

#### 1.7.10

 * Changed name
 * Lots of fixes planned

#### 1.6.5

 * Fixed logos

#### 1.6.4

 * Fixed a bug with ‘data’ parameter of jxAction() function (it become optional)

#### 1.6.3

 * Added new method variables() to set bunch of variables simultaneously
 * Added new method trigger() to trigger jQuery event on the client side (with parameters)

#### 1.6.2

 * Added named global triggers to track AJAX activity: jx_start_, jx_success_, jx_finish_,
   jx_error_

#### 1.6.1

 * Fix for WP 4.8.1 compatibility

#### 1.6

 * Added global triggers (at document level) to track AJAX activity: jx_start, jx_finish,
   jx_success, jx_error

#### 1.5.2.6

 * Fixed data collection from forms by jxFormData() method. Especially for checkbox
   lists and radio lists.

#### 1.5.2.4

 * New method call() was added. Read doc for details.

#### 1.5.2.3

 * Added new flag « has_priv » in JX class

#### 1.5.2.1

 * Fixed version number in core file

#### 1.5.1.1

 * Now working at admin side too

#### 1.5.0.1

 * Some security bugs was fixed.

#### 1.5

 * console() method added
 * redirect() method has been fixed
 * javascript module completely redone.

#### 1.1

 * Full Documentation has been added
 * variable() method added

#### 1.0

 * First WordPress version

#### 0.4

 * html(), redirect(), reload() methods were added.

#### 0.1

 * Initial edition. Only conception is implemented with alert() method on-board.

## Méta

 *  Version **1.7.11**
 *  Dernière mise à jour **il y a 7 ans**
 *  Installations actives **100+**
 *  Version de WordPress ** 3.0.1 ou plus **
 *  Testé jusqu’à **5.2.29**
 *  Langue
 * [English (US)](https://wordpress.org/plugins/ajax-manufactory/)
 * Étiquettes
 * [ajax](https://fr.wordpress.org/plugins/tags/ajax/)[client side](https://fr.wordpress.org/plugins/tags/client-side/)
   [request](https://fr.wordpress.org/plugins/tags/request/)[server side](https://fr.wordpress.org/plugins/tags/server-side/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/ajax-manufactory/advanced/)

## Évaluations

 5 sur 5 étoiles.

 *  [  5 avis à 5 étoiles     ](https://wordpress.org/support/plugin/ajax-manufactory/reviews/?filter=5)
 *  [  0 avis à 4 étoile     ](https://wordpress.org/support/plugin/ajax-manufactory/reviews/?filter=4)
 *  [  0 avis à 3 étoile     ](https://wordpress.org/support/plugin/ajax-manufactory/reviews/?filter=3)
 *  [  0 avis à 2 étoile     ](https://wordpress.org/support/plugin/ajax-manufactory/reviews/?filter=2)
 *  [  0 avis à 1 étoile     ](https://wordpress.org/support/plugin/ajax-manufactory/reviews/?filter=1)

[Votre avis](https://wordpress.org/support/plugin/ajax-manufactory/reviews/#new-post)

[Tout voir](https://wordpress.org/support/plugin/ajax-manufactory/reviews/)

## Contributeurs

 *   [ Epsiloncool ](https://profiles.wordpress.org/epsiloncool/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/ajax-manufactory/)

## Faire un don

Souhaitez-vous soutenir l’avancement de cette extension ?

 [ Faire un don à cette extension ](http://e-wm.org/)