Issue Feature Closed

#15844API needed to write HTML tags into the FE header tags directly

Franz Holzinger 03/17/06, 11:52 updated 08/12/06, 14:17

Description

There is a function in setJS in class.tslib_fe.php which makes it possible to add JavaScript into the FE page.
However this writes
<script type="text/javascript">/*<![CDATA<strong>/ <!--...// -->/</strong>]&gt;*/ </script>‘;
directly. It shall however be possible to write the script tags directly.
This is needed to add a reference to a JavaScript file into the
tags with $TSFE in extensions.

<script type="text/javascript" src="typo3/ext/xajax/xajax_js/xajax.js"></script>

<script type="text/javascript"><br /> /*<![CDATA[*/<br /><!--<br /> <script type="text/javascript"><br />var xajaxRequestUri=&#8220;<a href="http://localhost/index.php?id=339&#8221;;" target="_blank" rel="noreferrer">http://localhost/index.php?id=339&#8221;;</a><br />var xajaxDebug=false;<br />var xajaxStatusMessages=false;<br />var xajaxWaitCursor=true;<br />var xajaxDefinedGet=0;<br />var xajaxDefinedPost=1;<br />function showArticle(){return xajax.call(&#8220;showArticle&#8221;, arguments, 1);}<br />function changeValue(){return xajax.call(&#8220;changeValue&#8221;, arguments, 1);}<br />function processFormData(){return xajax.call(&#8220;processFormData&#8221;, arguments, 1);}<br /></script>
<script type="text/javascript" src="typo3/ext/xajax/xajax_js/xajax.js"></script>

(issue imported from #M2901)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.