Zum Inhalt springen

Ajax httprequest im Backend

Erstellt am 13. Februar 2011 · Noch keine Antworten

Tags: Frage

Rey ·

hi,
ich habe gelesen das es möglich ist im backend http request mit ajax zu machen über die AJAXID
leider klappt es bei mir nicht und ich frage mich was ich falsch mache.
in der ext_localconf.php

$TYPO3_CONF_VARS['BE']['AJAX']['txtspoM1::loadlist'] = t3lib_extMgm::extPath('spo') . 'mod1/index.php:tx_spo_module1->getSubjects';

in der datei index.php

$url = $this->doc->backPath . 'ajax.php?ajaxID=txtspoM1::loadlist';
$output .= "<a href='#' onclick='".$url."'>Test</a>";

ich bekomme im Firebug die meldung

missing : in conditional expression
[Bei diesem Fehler anhalten] ajax.php?ajaxID=txtspoM1::loadlist