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.0.7
Type
Free
Release date
28.06.2011
Category
Utility
License
LGPL
Copyright
© 2009-2011 Andreas Schempp
Author
terminal42 gmbh (andreas.schempp) http://www.terminal42.ch/
Release notes and change log for 1.0.7
Other versions
  • Synced controller methods with Contao core.
  • Added core hook "getContentElement"
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
76
Total downloads
2879
Release installs
1882
Total installs
22478
Release updates
903
Total updates
7913
Dependencies of this extension
Other extensions depending on this one
Name
Version from
Version to
Contao
2.7.0
2.9.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
6434
23.07.2015 23:01