Index: t3lib/class.t3lib_tceforms_inline.php =================================================================== --- t3lib/class.t3lib_tceforms_inline.php (Revision 10254) +++ t3lib/class.t3lib_tceforms_inline.php (Arbeitskopie) @@ -2524,7 +2524,7 @@ */ protected function getHeadTags() { $headTags = array(); - $headDataRaw = $this->fObj->JStop(); + $headDataRaw = $this->fObj->JStop() . $this->getJavaScriptAndStyleSheetsOfPageRenderer(); if ($headDataRaw) { // Create instance of the HTML parser: @@ -2552,7 +2552,25 @@ return $headTags; } + /** + * Gets the JavaScript of the pageRenderer. + * This can be used to extract newly added files which have been added + * during an AJAX request. Due to the spread possibilities of the pageRenderer + * to add JavaScript rendering and extracting seems to be the easiest way. + * + * @return string + */ + protected function getJavaScriptAndStyleSheetsOfPageRenderer() { + /** @var $pageRenderer t3lib_PageRenderer */ + $pageRenderer = clone $GLOBALS['SOBE']->doc->getPageRenderer(); + $pageRenderer->setTemplateFile(TYPO3_mainDir . 'templates/helper_javascript_css.html'); + $javaScriptAndStyleSheets = $pageRenderer->render(); + + return $javaScriptAndStyleSheets; + } + + /** * Wraps a text with an anchor and returns the HTML representation. * Index: typo3/templates/helper_javascript_css.html =================================================================== --- typo3/templates/helper_javascript_css.html (Revision 0) +++ typo3/templates/helper_javascript_css.html (Revision 0) @@ -0,0 +1,12 @@ +###CSS_INCLUDE### +###CSS_INLINE### + +###JS_LIBS### +###JS_INCLUDE### +###JS_INLINE### +###HEADERDATA### + +###JS_LIBS_FOOTER### +###JS_INCLUDE_FOOTER### +###JS_INLINE_FOOTER### +###FOOTERDATA### \ No newline at end of file