[TYPO3-dev] alt_doc in iframe

Tomas Havner tomas.havner at kansli.lth.se
Tue Jan 8 10:08:08 CET 2013


  Tomas Havner skrev 2013-01-04 14:23:
>  Simon Schaufelberger (Schaufi) skrev 2013-01-04 13:52:
>> top.* refers to the parent of the iframe which is a variable in 
>> backend.php which you dont have in your case.
>>
>> Regards, Schaufi
>>
>> Am 04.01.2013 12:20, schrieb Tomas Havner:
>>>   Hi,
>>>
>>> I'm trying to load alt-doc.php (in frontend) in an iframe. In this case
>>> to edit page properties. It works but I'm keep getting "TypeError:
>>> top.TS is undefined". Is it because I'm doing something wrong, or
>>> because it's just not possible. Is there a better way than using 
>>> alt_doc?
>>>
>>> Thankful for any suggestions.
>>>
>>> Tomas
> Thanks Schaufi,
>
> Is there a way to get around this?
>
> Regards
>
> Tomas
The answer is simple (as always). You simply create your own object on 
the "mother page":

var TS = new typoSetup();

function typoSetup()
{
     this.uniqueID = "";
     this.passwordDummy = "********";
     this.PATH_typo3 = "tjo";
     this.decimalSign = ".";
}

All taken from alt_doc.php.

Regards

Tomas



More information about the TYPO3-dev mailing list