[TYPO3-dev] Ajax/JS help needed.
Stig Nørgaard Færch
stig at 8620.dk
Fri Aug 1 11:17:43 CEST 2008
Stig Nørgaard Færch skrev:
> I use this:
> new Ajax.Updater('typo3-menu', TS.PATH_typo3 + 'ajax.php', {
> parameters : 'ajaxID=ModuleMenu::render',
> asynchronous : false,
> evalScripts : true,
> onComplete : eval(shortcut)
> });
Found another solution.
Instead of using oncomplete with Ajax.Updater, I use the insert method
like this:
$('typo3-backend-php').insert( { bottom: '<script type="text/
javascript">' + role + '</script>' } );
Now it works completely like expected.
/Stig
More information about the TYPO3-dev
mailing list