Hallo alle zusammen,
ich habe da mal eine Frage.
Bei xAjax ist die Einbindung ja ein Kinderspiel.
JS Funktion registrieren und gleichnamige PHP Funktion erstellen und mit xml zurück geben. Fertig.
Wie funktioniert das genau bei Mootools?
Ich habe nur aus der Doku das hier:
// checks if t3mootools is loaded
if (t3lib_extMgm::isLoaded('t3mootools')) {
require_once(t3lib_extMgm::extPath('t3mootools').'class.tx_t3mootools.php');
}
// if t3mootools is loaded and the custom Library had been created
if (defined('T3MOOTOOLS')) {
tx_t3mootools::addMooJS();
// if none of the previous is true, you need to include your own library
// just as an example in this way
} else {
$GLOBALS['TSFE']->additionalHeaderData['rgsmoothgallery'] = '<script src="'.$this->getPath($this->conf['pathToMootools']).'" type="text/javascript"></script>';
}
Aber das ist ja nur die Einbindung vom standard JS von Mootools.
Wie bekomm ich meine Funktionen so wie bei xAjax da rein?! Geht das überhaupt so bequem?
Wenn mt das nicht kann, kann das vielleicht Json so wie xAjax?