Project

General

Profile

Actions

Feature #15844

closed

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

Added by Franz Holzinger over 18 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2006-03-17
Due date:
% Done:

0%

Estimated time:
PHP Version:
4
Tags:
Complexity:
Sprint Focus:

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[*/ /*]]>*/ </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 <header> tags with $TSFE in extensions.

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

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

(issue imported from #M2901)

Actions

Also available in: Atom PDF