Monday, February 8, 2016

TYPO3 - typoscript based AJAX example for version 7.6.0

Need to write some text ... will be updated very soon ...
Here i've make one working example available for you and its here  https://github.com/nirmalyamondal/Typo3-Extensions/tree/master/typo3_ajax

Friday, February 5, 2016

TYPO3 - eID based AJAX example for version 7.6.0

We can implement AJAX for TYPO3 CMS in many ways where eID has been started since version 6.2. This is best when we don't want to take help of Typoscript.
Here we'll follow these guidelines below for this method.
1. We need to include in ext_localconf.php file.
2. Create AjaxUtility class file and define the method you want to execute on AJAX request inside that file.
3. Now you need to define the EidDispatcher php file.
4. The last step is to define AJAX in your javascript file. We can take this as our first step as well.

Here i've make one working example available for you https://github.com/nirmalyamondal/Typo3-Extensions/tree/master/ajax_data
When we match this "ajax_data" extension with the above steps we'll find these simultaneously
1. https://github.com/nirmalyamondal/Typo3-Extensions/blob/master/ajax_data/ext_localconf.php
2. https://github.com/nirmalyamondal/Typo3-Extensions/blob/master/ajax_data/Classes/Domain/Service/AjaxUtility.php
3. https://github.com/nirmalyamondal/Typo3-Extensions/blob/master/ajax_data/EidDispatcher.php
4. https://github.com/nirmalyamondal/Typo3-Extensions/blob/master/ajax_data/Resources/Public/Js/AjaxData.js

I've tested "ajax_data" with 7.6.0 so this should work for you as well.