Extensions > ajax

Ajax-Tools

[ajax]

Simplier and faster usage of AJAX in TYPOlight.

This extension adds a helper script "ajax.php" to the system root. Using this script allows you to make Ajax-requests a lot simplier. This extension is provided for other developers to use in their extensions!

Usage

ajax.php can be used in the Mootools Request-Class as an url. To run the default features, you only need to pass two GET-parameters:

  • action: The action to execute, can be either "fmd" (Frontend Module), "cte" (Content Element) or "ffl" (Form field).
  • id: The ID of your class.


By passing those two parameters, the function called generateAjax() is called on your Module/Content Element/Widget. This allows you to switch the template or trigger future actions. A simple example can be found in the calendarbanner extension.

Special case "Widget"

Compared to frontend modules and content elements, a widget does not (have to) be in the database. This means the ID cannot match a data record. When generating the widget you should set the $_SESSION['AJAX-FFL'] array with the required data. An example can be found in the extension FancyUpload (Release 2).

Version
1.1.5
Type
Free
Release date
18.11.2012
Category
Utility
License
LGPL
Copyright
© 2009-2012 Andreas Schempp
Author
terminal42 gmbh (andreas.schempp) http://www.terminal42.ch/
Release notes and change log for 1.1.5
Other versions
Release functionality
 
Total functionality
10.00
Release usability
 
Total usability
10.00
Release quality
 
Total quality
10.00
Release rating
 
Total rating
10.00 (4 votes)
Release downloads
193
Total downloads
2880
Release installs
3061
Total installs
22482
Release updates
1011
Total updates
7913
Dependencies of this extension
Other extensions depending on this one
Name
Version from
Version to
Contao
2.9.0
2.11.6
Name
Version from
Version to
0.0.1-alpha1
0.0.1-alpha1
1.0.0-beta1
1.1.1
0.1.0
0.9.3
1.0.0-beta1
1.0.0
1.0.0
1.0.0
1.2.1
1.2.2
1.0.0
3.2.0
1.0.0
1.1.0
1.0.0
4.6.0
1.1.1
1.2.0
2.0.0
3.0.1
1.3.0-beta2
1.4.8
0.4.0
0.4.3
1.0.2
1.3.0
0.9.9-beta2
3.0.1-RC1
1.4.0
2.2.0
0.8.5
0.9.1
2.0.0-beta1
3.1.0
0.1.5-RC1
0.1.5-RC1
1.0.0-alpha1
1.0.0-alpha1
2.1.0
2.1.0
Package
Size
Date
7247
24.07.2015 10:57