[TYPO3-core] RFC: Bug #7245: Javascript Error in new Backend

Steffen Kamper steffen at sk-typo3.de
Thu Jan 24 00:34:04 CET 2008


Hi Ingo,

"Ingo Renner" <ingo at typo3.org> schrieb im Newsbeitrag 
news:mailman.1.1201130226.20095.typo3-team-core at lists.netfielders.de...
> Steffen Kamper wrote:
>
> Hi Steffen,
>
>> \''.t3lib_div::getIndpEnv('TYPO3_SITE_URL').TYPO3_mainDir.'ajax.php\', {
>
> you shouldn't need the full path to ajax.php here
>

in this case yes. if not, the path will be built as
typo3/mod/tools/em/ajax.php
because this script calls the JS. So we never know who is calling the script 
from which path.

This looks complicate. We have $this->backpath for paths, maybe we need 
simular for urls.

>> i encountered problems: ul was empty (function returns correct html)
>
> seems as some initialization is missing, just check backend.php how it 
> initializes the module menu
>
no, i checked the return of the function: complete html.Init is ok.
So error is somewhere updating the div, i will investigate further

vg  Steffen

btw: while checking JS in backend.php it seems, that some of it is never 
used in new backend. I'm not sure but there are many things we could drop. 
It would be the best to do this in next time, later it will be more 
diffucult to know if a snippet is really needed.
Also used JS could be converted to selectors instead of those 
getElementById.





More information about the TYPO3-team-core mailing list