is an easy way to use Ajax requests. According to the different states and results of the request, you can change a property of an object.

Description of the properties


General

  • ActionName : the name of the action, this will be also the name of the javascript function to call.

  • Method : Ajax POST or GET

  • Server page to call : the url of the server page, for example « myserverpage.php »

  • Object ID : Optional – The ID of the object to modify

  • Javascript before : the script to execute before the action

  • Asynchronous : true for an asynchronous request, false otherwise.

 

Initial

If an Object ID is specified, you can set its  Initial state.

  • Object property name : the name of the property to modify

  • Object property value : the value of the property, use " " to specify string value.

  • Object is visible : true if the object must be visible, false otherwise.

  • Javascript : a script to execute

 

On Success

See Initial catégory.

  • If your request has a result text, you can use the special value @data for string value. For example,

  • "Status is @data "

 

On Fail

See Initial catégory.

 

Design

For design purpose.

  • Action Description : the description of the Action to display in design mode

  • Background Color : the background color of the Action object in design mode

 

Using the AjaxAction function in javascript


For each AjaxAction a function (getIP() in the example) is created. The name of the function is the name of the AjaxAction.

  • Using the synchronous mode (setting false to Asynchronous property), the function can return a string value if succeed.

  • You can pass parameter to the function using the application/x-www-form-urlencoded content type.

    • For example :

      • getParam(‘name=ip’) ;

      • myAction(‘param1=x&param2=y’) ;

 

Installation and License 


  • How to install this extension so it is available in WYSIWYG Web Builder?

You can use the Extension Manager (Menu->Tools->Extension Manager) to installthis extension.
Alternatively you can manually copy all files from the zip file to the Web Builder extensions folder. Usually this folder is in this location: My documents\WYSIWYG Web Builder\system\extensions\

  • License agreement

This extension is not officially supported; it is made available as an extra service for the registered users of WYSIWYG Web Builder that find it useful. It is provided "AS IS" without warranty of any kind, either expressed or implied.

  • Requirements

WYSIWYG Web Builder 9 or higher