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:
  • act: 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.0.3
Type
Free
Release date
19.10.2009
Category
Utility
License
LGPL
Copyright
© 2009 Andreas Schempp
Author
terminal42 gmbh (andreas.schempp) http://www.terminal42.ch/
Release notes and change log for 1.0.3
Other versions
Minor fixes. Now you will get useful error messages when something fails. Should be better for debugging.
Release functionality
10.00
Total functionality
10.00
Release usability
10.00
Total usability
10.00
Release quality
10.00
Total quality
10.00
Release rating
10.00 (1 votes)
Total rating
10.00 (4 votes)
Release downloads
49
Total downloads
2880
Release installs
120
Total installs
22478
Release updates
126
Total updates
7913
Dependencies of this extension
Other extensions depending on this one
Name
Version from
Version to
Contao
2.7.0
2.7.5
Name
Version from
Version to
1.1.1-beta1
1.7.0
0.0.1
0.0.2-alpha1
2.0.0-RC1
2.0.0-RC1
1.0.1
1.0.1
0.1.0-beta1
1.3.0-beta1
0.3.0-beta3
0.4.3
1.0.1
1.0.1
0.0.1-alpha1
0.0.1-RC1
0.0.1-alpha1
0.0.1-alpha1
1.1.1
1.1.2
1.0.0-RC1
2.0.0-beta1
1.0.7
1.0.8
0.0.1-RC1
1.0.0
Package
Size
Date
4624
24.07.2015 00:03