Project

General

Profile

Actions

Bug #20022

closed

old/classic BE --> top.rawurlencodeAndRemoveSiteUrl is not a function

Added by Dennis Schulz about 15 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-02-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If running the old Backend, you are not able to select the modules from the WEB Category (WEB->Page for example).
If you click on "Page" it is producing a JavaScript error Message:

"top.rawurlencodeAndRemoveSiteUrl is not a function"

Solution:
I figured out, the function is missing in the old BE javascript code.
If I add the code to the alt_main.php file it is working again.

############

$this->mainJScode='
..... ##########

/**
    * Function to similar to PHPs  rawurlencode() which removes TYPO3_SITE_URL;
*/
function rawurlencodeAndRemoveSiteUrl(str)    {    //
var siteUrl = "' . t3lib_div::getIndpEnv('TYPO3_SITE_URL') . '";
return rawurlencode(str_replace(siteUrl, \'\', str));
}
.....

(issue imported from #M10445)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #22701: Remove old_backendClosedSteffen Kamper2010-05-23

Actions
Has duplicate TYPO3 Core - Bug #21338: Menu in alt_main does not react to clicksClosedChris topher2009-10-22

Actions
Actions #1

Updated by Lars Mathwig over 14 years ago

Thanks for the solution. It fixes my 4.2.8 with old backend

Actions #2

Updated by Chris topher almost 14 years ago

After the old BE was removed in #22701:

Resolved no change required.

Actions #3

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF