[TYPO3-core] RFC: 0002901: API needed to write HTML tags into the FE header tags directly

Franz Holzinger franz at fholzinger.com
Fri Mar 17 15:40:06 CET 2006


This is a CVS patch request.

Description:
A FE method is needed to write HTML code directly inside of the <head> tags. This is needed for AJAX.


Problem:
It is already possible to put JavaScript code into the HTML header of a page. However if you want to use AJAX then the AJAX engine itself produces all JavaScript code for you. This includes already the <script> tags with additional attributes.
E.g. the XAJAX extension from Elmar Hinz produces the line
-----------
	<script type="text/javascript" src="typo3/ext/xajax/xajax_js/xajax.js"></script>
--------------
in order to include JavaScript code from inside of a file.


At the moment JavaScript from XAJAX can only be used inside of a DIV tag. It would however be better not to have the same code in every DIV tag which needs AJAX.


The attached file has been produced with the latest development version of tt_products with the categories list display using select boxes and JavaScript to fill the second and third select box on the change of the select box before. At the end the article of the selected category should be shown using AJAX.




Regards,


Franz










-------------- next part --------------
A non-text attachment was scrubbed...
Name: headerHTML.diff
Type: text/x-patch
Size: 1731 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060317/fb001c3e/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error-typo6-1.png
Type: image/png
Size: 14799 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060317/fb001c3e/attachment.png 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-tslib_fe-xajax.txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060317/fb001c3e/attachment.txt 


More information about the TYPO3-team-core mailing list