[TYPO3-english] page.jsInline strips parts of the JavaScript code
Peter Kraume
usenet at kraume.de
Tue Feb 8 11:00:36 CET 2011
I've added the following TypoScript with JavaScript code within an
extension:
page.jsInline {
4711 = TEXT
4711.dataWrap (
window.fbAsyncInit = function() {
FB.init({
appId: '',
status: true,
cookie: true,
xfbml: true
});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
)
}
The result in the frontend is broken:
window.fbAsyncInit=function());};(function()());
Obviously some parts of the JavaScript are stripped.
It doesen't matter whether config.removeDefaultJS or config.minifyJS are
enabled or disabled. TYPO3 version is 4.4.6
Can someone confirm this issue?
Thx
Peter
More information about the TYPO3-english
mailing list